Skip to main content
Version: 5.7.0

ReadGlobalStatsForCategory

Method retrieves the global statistics for the given category.

ServiceOperation
globalGameStatisticsREAD_FOR_CATEGORY

Method Parameters

ParameterDescription
categoryThe global statistics category

Usage

http://localhost:3000
string category = "generated";
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.GlobalStatisticsService.ReadGlobalStatsForCategory(category, successCallback, failureCallback);
JSON Response
{
"data": {
"statistics": {
"ESTIMATE": 5,
"HIGHESTHR": 4,
"INNING": 2,
"INNINGSREM": 0,
"INNINGnew": 1,
"OUTS": 0,
"PLAYERS": 8,
"PLAYER_COUNT": 4,
"PLAYER_COUNTa": 1,
"POINT": 1,
"POINTS": 11,
"otherstat": 0
}
},
"status": 200
}