GetGroupDivisionInfo
Essentially the same as GetGroupTournamentStatus(), but takes a division set id instead of a leaderboard id as its parameter. Would generally be called before JoinGroupDivision() in the case that there are multiple tournaments, or if the group member is shown information to make an informed choice as to whether to join group in tournament.
| Service | Operation |
|---|---|
| tournament | GET_GROUP_DIVISION_INFO |
Method Parameters
| Parameter | Description |
|---|---|
| divSetId | Division set id. |
| groupId | Member's group id. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
string divSetId = "exampleDivSetId";
string groupId = "the-group-id";
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.GetGroupDivisionInfo(divSetId, groupId, successCallback, failureCallback);
const char *divSetId = "exampleDivSetId";
const char *groupId = "the-group-id";
_bc.getTournamentService().getGroupDivisionInfo(divSetId, groupId, this);
NSString *divSetId = @"exampleDivSetId";
NSString *groupId = @"the-group-id";
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc tournamentService] getGroupDivisionInfo:
divSetId:divSetId
groupId:groupId
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil]
String divSetId = "exampleDivSetId";
String groupId = "the-group-id";
this; // implements IServerCallback
_bc.getTournamentService.getGroupDivisionInfo(divSetId, groupId, this);
public void serverCallback(ServiceName serviceName, ServiceOperation serviceOperation, JSONObject jsonData)
{
System.out.print(String.format("Success | %s", jsonData.toString()));
}
public void serverError(ServiceName serviceName, ServiceOperation serviceOperation, int statusCode, int reasonCode, String jsonError)
{
System.out.print(String.format("Failed | %d %d %s", statusCode, reasonCode, jsonError.toString()));
}
var divSetId = "exampleDivSetId";
var groupId = "the-group-id";
_bc.tournament.getGroupDivisionInfo(divSetId, groupId, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var divSetId = "exampleDivSetId";
var groupId = "the-group-id";
ServerResponse result = await _bc.tournamentService.getGroupDivisionInfo(divSetId:divSetId, groupId:groupId);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
local divSetId = "exampleDivSetId"
local groupId = "the-group-id"
local callback = function(result)
if result.statusCode == 200 then
print("Success")
else
print("Failed | " .. tostring(result.status))
end
end
_bc:getTournamentService():getGroupDivisionInfo(divSetId, groupId, callback)
var divSetId = "exampleDivSetId";
var groupId = "the-group-id";
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.getGroupDivisionInfo(divSetId, groupId);
{
"service":"tournament",
"operation":"GET_GROUP_DIVISION_INFO",
"data":{
"divSetId":"exampleDivSetId",
"groupId":"the-group-id"
}
}
JSON Response
{
"data": {
"server_time": 1772650570254,
"versionId": 1,
"tournamentTimetable": {
"tRegistrationStart": 1772650560000,
"tState": "ACTIVE",
"tPlayEnd": 1772724000000,
"tRegistrationEnd": 1772724000000,
"tPlayStart": 1772650560000
},
"tournamentConfigs": [
{
"tournamentCode": "myGroupTournamentCode",
"entryType": "GROUP",
"description": {
"name": {
"en": "Group Tournament"
},
"desc": {
"en": "Tournament for groups."
}
},
"customJson": {},
"excludeInitialScoresFromRewards": false
}
],
"enrolled": false
},
"status": 200
}