Esempio n. 1
0
 public SummonerIconInventoryDTO GetSummonerIconInventory(double summonerId)
 {
     int Id = Invoke("summonerIconService", "getSummonerIconInventory", new object[] { summonerId });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     SummonerIconInventoryDTO result = new SummonerIconInventoryDTO(messageBody);
     results.Remove(Id);
     return result;
 }
 public async Task<SummonerIconInventoryDTO> GetSummonerIconInventory(double summonerId)
 {
     int Id = Invoke("summonerIconService", "getSummonerIconInventory", new object[] { summonerId });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     SummonerIconInventoryDTO result = new SummonerIconInventoryDTO(messageBody);
     results.Remove(Id);
     return result;
 }