Skip to main content
Version: 5.7.0

ListAllLeaderboards

Method returns list of all the leaderboards from the server based on gameId of the user.

ServiceOperation
leaderboardLIST_ALL_LEADERBOARDS

Usage

http://localhost:3000
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.LeaderboardService.ListAllLeaderboards(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"leaderboardListCount": 3,
"leaderboardList": [
{
"leaderboardId": "default",
"leaderboardType": "HIGH_VALUE",
"resetAt": 1473793200000,
"rotationType": "WEEKLY",
"currentVersionId": 1,
"maxRetainedCount": 5,
"retainedVersionsCount": 1,
"data": {}
},
{
"leaderboardId": "default1",
"leaderboardType": "HIGH_VALUE",
"resetAt": 1517428800000,
"rotationType": "WEEKLY",
"currentVersionId": 1,
"maxRetainedCount": 2,
"retainedVersionsCount": 1,
"data": {
"retainedCount": 7
}
}
]
}
}