/// <summary> /// With this command you can get a LeaderBoardDetails with the ID of the LeaderBoard list /// you registered in the Developer panel. /// </summary> /// <param name="leaderBoardId">The ID of leaderBoard you Want To get Detail</param> /// <param name="callback">LeaderBoardDetails<see cref="DelegateCore.OnGetLeaderBoardDetails"/></param> /// <param name="error">Error</param> public void GetLeaderBoardDetails( string leaderBoardId, DelegateCore.OnGetLeaderBoardDetails callback, DelegateCore.OnError error) { if (_gameServiceObj == null) { if (_isAvailable) { if (FiroozehGameService.Configuration.EnableLog) { LogUtil.LogError(Tag, "GameService Is NotAvailable yet"); } } else { if (FiroozehGameService.Configuration.EnableLog) { LogUtil.LogError(Tag, "You Logout Before ,You Must Config it Again..."); } } return; } _gameServiceObj.Call("GetLeaderBoardDetails" , leaderBoardId , new IGameServiceCallback(onCallback => { callback.Invoke(JsonConvert.DeserializeObject <LeaderBoardDetails>(onCallback)); }, error.Invoke)); }
public void GetLeaderBoardDetails( string leaderBoardId, DelegateCore.OnGetLeaderBoardDetails callback, DelegateCore.OnError error) { if (_gameServiceObj != null) { _gameServiceObj.Call("GetLeaderBoardData" , leaderBoardId , new IGameServiceCallback(oncallback => { callback.Invoke(JsonConvert.DeserializeObject <LeaderBoardDetails>(oncallback)); }, error.Invoke)); } }