/// <summary> /// Handles an <c>onGetScoresStarted</c> event /// </summary> /// <param name="message"> /// Will contain a numeric representation of <c>Provider</c>, /// and payload</param> public void onGetScoresStarted(String message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onGetScoresStarted"); JSONObject eventJson = new JSONObject(message); Provider provider = Provider.fromInt((int)eventJson["provider"].n); bool fromStart = eventJson["fromStart"].b; Leaderboard owner = new Leaderboard(eventJson["leaderboard"]); JSONObject payloadJSON = new JSONObject(eventJson ["payload"].str); ProfileEvents.OnGetScoresStarted(new GetScoresStartedEvent(provider, owner, fromStart, ProfilePayload.GetUserPayload(payloadJSON))); }