Пример #1
0
 /// 34.)
 public void GetAllPublicSummonerDataByAccount(double accountId, AllPublicSummonerDataDTO.Callback callback)
 {
     AllPublicSummonerDataDTO cb = new AllPublicSummonerDataDTO(callback);
     InvokeWithCallback("summonerService", "getAllPublicSummonerDataByAccount", new object[] { accountId }, cb);
 }
Пример #2
0
 public AllPublicSummonerDataDTO GetAllPublicSummonerDataByAccount(double accountId)
 {
     int Id = Invoke("summonerService", "getAllPublicSummonerDataByAccount", new object[] { accountId });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     AllPublicSummonerDataDTO result = new AllPublicSummonerDataDTO(messageBody);
     results.Remove(Id);
     return result;
 }
 public async Task<AllPublicSummonerDataDTO> GetAllPublicSummonerDataByAccount(Double accountId)
 {
     int Id = Invoke("summonerService", "getAllPublicSummonerDataByAccount", new object[] { accountId });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     AllPublicSummonerDataDTO result = new AllPublicSummonerDataDTO(messageBody);
     results.Remove(Id);
     return result;
 }