Skip to main content
Version: 5.7.0

ViewReward

Returns the user's reward from a finished tournament.

ServiceOperation
tournamentVIEW_REWARD

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard for the tournament
versionIdVersion of the tournament, use -1 for the latest version

Usage

http://localhost:3000
string leaderboardId = "leaderboardId1";
int versionId = 10;
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.ViewReward(leaderboardId, versionId, 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
}
}