GetGroupDivisions
Returns a list of the member's group's recently active divisions, organized by simplified tournament state: ACTIVE, PENDING, COMPLETE.
| Service | Operation |
|---|---|
| tournament | GET_GROUP_DIVISIONS |
Method Parameters
| Parameter | Description |
|---|---|
| groupId | Member's group id. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Roblox
- Cloud Code
- Raw
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.GetGroupDivisions(groupId, successCallback, failureCallback);
const char *groupId = "the-group-id";
_bc.getTournamentService().getGroupDivisions(groupId, this);
NSString *groupId = @"the-group-id";
BCCompletionBlock successBlock; // define callback
BCErrorCompletionBlock failureBlock; // define callback
[[_bc tournamentService] getGroupDivisions:
groupId:groupId
completionBlock:successBlock
errorCompletionBlock:failureBlock
cbObject:nil]
String groupId = "the-group-id";
this; // implements IServerCallback
_bc.getTournamentService.getGroupDivisions(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 groupId = "the-group-id";
_bc.tournament.getGroupDivisions(groupId, result =>
{
var status = result.status;
console.log(status + " : " + JSON.stringify(result, null, 2));
});
var groupId = "the-group-id";
ServerResponse result = await _bc.tournamentService.getGroupDivisions(groupId:groupId);
if (result.statusCode == 200) {
print("Success");
} else {
print("Failed ${result.error['status_message'] ?? result.error}");
}
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():getGroupDivisions(groupId, callback)
var groupId = "the-group-id";
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.getGroupDivisions(groupId);
{
"service":"tournament",
"operation":"GET_GROUP_DIVISIONS",
"data":{
"groupId":"the-group-id"
}
}
JSON Response
{
"data": {
"ACTIVE": {
"uniqueDivSetId2": [
"^D^uniqueDivSetId2^1"
]
},
"PENDING": {},
"COMPLETE": {}
},
"status": 200
}