Skip to main content
Version: 5.7.0

ViewCurrentReward

Returns the user's expected reward based on the current scores.

ServiceOperation
tournamentVIEW_CURRENT_REWARD

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard for the tournament

Usage

http://localhost:3000
string leaderboardId = "leaderboardId1";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.TournamentService.ViewCurrentReward(leaderboardId, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"updatedAt": 1483719066661,
"tRank": 1,
"createdAt": 1483719066661,
"rewards": {
"currency": {
"credits": 100
}
},
"tCode": "testTournament",
"data": null,
"score": 879,
"tClaimedAt": 0
}
}