Skip to main content
Version: 6.0.0

GetGroupTournamentStatus

Get tournament status associated with a leaderboard. Option parameter: leaderboard version id 'versionId'. If -1, defaults to current version.

ServiceOperation
tournamentGET_GROUP_TOURNAMENT_STATUS

Method Parameters

ParameterDescription
leaderboardIdThe leaderboard for the group tournament.
groupIdMember's group id.
versionIdVersion of the tournament, use -1 for the latest version.

Usage

http://localhost:3000
string leaderboardId = "the-leaderboard-id";
string groupId = "the-group-id";
int versionId = 1;
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.GetGroupTournamentStatus(leaderboardId, groupId, versionId, successCallback, failureCallback);
JSON Response
{
"data": {
"server_time": 1772654500074,
"leaderboardEnrollment": {
"score": 10,
"data": null,
"createdAt": 1772654392327,
"updatedAt": 1772654392327,
"tCode": "myGroupTournamentCode",
"isInitialTScore": true,
"tRank": 0,
"tClaimedAt": 0,
"tNotifiedAt": 0
},
"versionId": 3,
"tournamentTimetable": {
"tRegistrationStart": 1772637600000,
"tState": "ACTIVE",
"tPlayEnd": 1772724000000,
"tRegistrationEnd": 1772724000000,
"tPlayStart": 1772637600000
},
"tournamentConfigs": [
{
"tournamentCode": "myGroupTournamentCode",
"entryType": "GROUP",
"description": {
"name": {
"en": "Group Tournament"
},
"desc": {
"en": "Tournament for groups."
}
},
"customJson": {},
"excludeInitialScoresFromRewards": false
}
],
"enrolled": true
},
"status": 200
}