SysListDivisionSetConfigs
Lists all division set configurations for the app.
Service | Operation |
---|---|
tournament | SYS_LIST_DIVISION_SET_CONFIGS |
Method Parameters
Parameter | Description |
---|---|
optionsJson | Optional JSON to sort the list of division set configs. Valid values for sort field are \ASCENDING\ or \DESCENDING. Unsorted if not specified. |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
// Cloud Code only. To view example, switch to the Cloud Code tab
var optionsJson = {
"sort": "ASCENDING"
};
var tournamentProxy = bridge.getTournamentServiceProxy();
var postResult = tournamentProxy.sysListDivisionSetConfigs(optionsJson);
if (postResult.status == 200) {
// Success!
}
{
"service": "tournament",
"operation": "SYS_LIST_DIVISION_SET_CONFIGS",
"data":
{
"optionsJson": {
"sort": "ASCENDING"
}
}
}
JSON Response
{
"data": {
"count": 7,
"divSetConfigs": [
{
"divSetId": "div1",
"desc": "A division to the player",
"scheduleType": "Sync",
"lbTemplate": "lcon",
"max": 100,
"expiryDays": 15,
"createdAt": 1593703109596,
"updatedAt": 1594670543542,
"version": 1
},
{
"divSetId": "uniqueDivSetId",
"desc": "Gold division",
"scheduleType": "Sync",
"lbTemplate": "l4",
"max": 100,
"expiryDays": 15,
"createdAt": 1654004481428,
"updatedAt": 1654004481428,
"version": 1
}
]
},
"status": 200
}