Skip to main content
Version: 6.0.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": {
"cus_ESTIMATE": 5,
"cus_HIGHESTHR": 4,
"cus_INNING": 2,
"cus_INNINGSREM": 0,
"cus_INNINGnew": 1,
"cus_OUTS": 0,
"cus_PLAYERS": 8,
"cus_PLAYER_COUNT": 4,
"cus_PLAYER_COUNTa": 1,
"cus_POINT": 1,
"cus_POINTS": 11,
"cus_otherstat": 0
}
},
"status": 200
}