public interface RewardReportService
| Modifier and Type | Method and Description |
|---|---|
RewardReport |
computeRewards(long periodDateInSeconds)
Compute rewards swicth configurations for the list of identities passed in
parameters
|
List<RewardPeriod> |
getRewardPeriodsInProgress() |
RewardReport |
getRewardReport(long periodTimeInSeconds)
Retrieve a
RewardReport corresponding to a period of time |
List<WalletReward> |
listRewards(String currentUser,
int limit) |
void |
saveRewardReport(RewardReport rewardReport) |
void |
sendRewards(long periodDateInSeconds,
String username)
Send rewards transactions
|
RewardReport computeRewards(long periodDateInSeconds)
periodDateInSeconds - a timestamp in seconds inside the period time
that will be retrievedSet of WalletReward with the details of sent
tokens and tokens to sendvoid sendRewards(long periodDateInSeconds,
String username)
throws Exception
periodDateInSeconds - a timestamp in seconds inside the period time
that will be retrievedusername - current username sending rewardsException - if an error occurs while sending the rewards transactions
on blockchainRewardReport getRewardReport(long periodTimeInSeconds)
RewardReport corresponding to a period of timeperiodTimeInSeconds - selected date periodRewardReport if there is a saved one, else nullvoid saveRewardReport(RewardReport rewardReport)
rewardReport - save generated reward reportList<RewardPeriod> getRewardPeriodsInProgress()
List of RewardPeriod that are in progressList<WalletReward> listRewards(String currentUser, int limit)
currentUser - current user listing his rewardslimit - size limit of items to returnList of WalletReward of current userCopyright © 2003–2019 eXo Platform SAS. All rights reserved.