Skip to main content
Version: 5.7.0

ResetAllUserStats

Reset all of the statistics for this user back to their initial value.

ServiceOperation
playerStatisticsRESET

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.PlayerStatisticsService.ResetAllUserStats(successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"milestones": {
"1": "UNLOCKED",
"2": "UNLOCKED"
},
"xpCapped": false,
"experiencePoints": 0,
"quests": {
"Test Quest 2": "UNLOCKED",
"Test Quest 1": "UNLOCKED"
},
"playerAchievements": [],
"experienceLevel": 0,
"statistics": {
"RoundsWon": 0,
"RoundsLost": 0,
"DifficultyChanges": 0,
"RoundsFinished": 0
}
}
}