Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to get all unique and virtual accounts from the economy service #2152

Merged
merged 5 commits into from
Jul 8, 2020

Conversation

ImMorpheus
Copy link
Contributor

Fix #1398

@ImMorpheus ImMorpheus added system: economy api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) labels Jul 4, 2020
@ImMorpheus ImMorpheus changed the base branch from stable-7 to api-8 July 4, 2020 11:47
@ImMorpheus ImMorpheus changed the title Eco/accounts Add a way to get all unique and virtual accounts from the economy service Jul 4, 2020
*
* @return A {@link Stream} of all stored {@link UniqueAccount} objects.
*/
Stream<UniqueAccount> uniqueAccounts();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Stream and Collection getters.

I like Streams but we should not shoehorn people into doing them as a default. I made the same change for the CatalogRegistry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also use the same phrasing in the CatalogRegistry that I've seen in other libraries?

https://github.com/SpongePowered/SpongeAPI/blob/api-8/src/main/java/org/spongepowered/api/registry/CatalogRegistry.java#L96

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ImMorpheus I meant the method names.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) system: economy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't get list of accounts from EconomyService
2 participants