Пример #1
0
 public async Task<PlayerLifetimeStats> RetrievePlayerStatsByAccountId(Double accountId, String season)
 {
     int Id = Invoke("playerStatsService", "retrievePlayerStatsByAccountId", new object[] { accountId, season });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     PlayerLifetimeStats result = new PlayerLifetimeStats(messageBody);
     results.Remove(Id);
     return result;
 }
Пример #2
0
 /// 18.)
 public void RetrievePlayerStatsByAccountId(Double accountId, String season, PlayerLifetimeStats.Callback callback)
 {
     PlayerLifetimeStats cb = new PlayerLifetimeStats(callback);
     InvokeWithCallback("playerStatsService", "retrievePlayerStatsByAccountId", new object[] { accountId, season }, cb);
 }