IRewardsClient

interface IRewardsClient

All the apis related to rewards item discovery, balance and transfer exposed here

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getApplicationRewardItems(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<RewardItem>>)
abstract fun getApplicationRewardItems(liveLikePagination: LiveLikePagination, requestParams: ApplicationRewardItemsRequestParams, liveLikeCallback: LiveLikeCallback<List<RewardItem>>)

fetch all the rewards item associated to the client id passed at initialization of sdk to fetch next page function need to be called again with LiveLikePagination.NEXT and for first call as LiveLikePagination.FIRST

Link copied to clipboard
abstract fun getInvokedRewardActions(liveLikePagination: LiveLikePagination, invokedActionRequestParams: GetInvokedRewardActionParams?, liveLikeCallback: LiveLikeCallback<List<InvokedRewardAction>>)

Fetch all the invoked actions with the current user prpfile

Link copied to clipboard
abstract fun getRewardActions(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<RewardActionInfo>>)

Retrieve all reward actions for a client id

Link copied to clipboard
abstract fun getRewardItemBalances(liveLikePagination: LiveLikePagination, rewardItemIds: List<String>, liveLikeCallback: LiveLikeCallback<List<RewardItemBalance>>)

fetch all the current user's balance for the passed rewardItemIDs in callback you will receive a map of rewardItemId and balance

Link copied to clipboard
abstract fun getRewardItemTransfers(liveLikePagination: LiveLikePagination, liveLikeCallback: LiveLikeCallback<List<TransferRewardItem>>)
abstract fun getRewardItemTransfers(liveLikePagination: LiveLikePagination, requestParams: RewardItemTransferRequestParams, liveLikeCallback: LiveLikeCallback<List<TransferRewardItem>>)

Retrieve all reward item transfers associated with the current user profile

Link copied to clipboard
abstract fun getRewardTransactions(liveLikePagination: LiveLikePagination, requestParams: RewardTransactionsRequestParameters?, liveLikeCallback: LiveLikeCallback<List<RewardTransaction>>)

Retrieve all reward transactions associated with the current user profile

Link copied to clipboard
abstract fun transferAmountToProfileId(rewardItemId: String, amount: Int, recipientProfileId: String, liveLikeCallback: LiveLikeCallback<TransferRewardItem>)

transfer specified reward item amount to the profileID amount should be a positive whole number