/// <summary> /// Handles an <c>onShowLeaderboards</c> event /// </summary> /// <param name="message"> /// Will contain a numeric representation of <c>Provider</c> /// </param> public void onShowLeaderboards(String message) { SoomlaUtils.LogDebug(TAG, "SOOMLA/UNITY onShowLeaderboards"); JSONObject eventJson = new JSONObject(message); Provider provider = Provider.fromInt((int)eventJson["provider"].n); JSONObject payloadJSON = new JSONObject(eventJson ["payload"].str); ProfileEvents.OnShowLeaderboards(new ShowLeaderboardsEvent(provider, ProfilePayload.GetUserPayload(payloadJSON))); }