Klasse PlayerFinanceService
java.lang.Object
de.delinkedde.areashopreborn.application.PlayerFinanceService
Exposes asynchronous player transaction history and journal-derived income totals.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungPlayerFinanceService(Database database, PlayerFinanceRepository finances) Creates the player finance service. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungSums income received during a lookback duration.transactions(UUID playerId, int limit) Lists the newest completed finance entries of a player.
-
Konstruktordetails
-
PlayerFinanceService
Creates the player finance service.- Parameter:
database- asynchronous database executorfinances- finance projection repository
-
-
Methodendetails
-
transactions
Lists the newest completed finance entries of a player.- Parameter:
playerId- player identifierlimit- maximum entries- Gibt zurück:
- future containing newest entries first
-
income
Sums income received during a lookback duration.- Parameter:
playerId- recipient identifierlookback- duration measured backwards from now- Gibt zurück:
- future containing journal-derived income
-