Esempio n. 1
0
 /// 5.)
 public void GetSummonerRuneInventory(double summonerId, SummonerRuneInventory.Callback callback)
 {
     SummonerRuneInventory cb = new SummonerRuneInventory(callback);
     InvokeWithCallback("summonerRuneService", "getSummonerRuneInventory", new object[] { summonerId }, cb);
 }
Esempio n. 2
0
 public SummonerRuneInventory GetSummonerRuneInventory(double summonerId)
 {
     int Id = Invoke("summonerRuneService", "getSummonerRuneInventory", new object[] { summonerId });
     while (!results.ContainsKey(Id))
         System.Threading.Thread.Sleep(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     SummonerRuneInventory result = new SummonerRuneInventory(messageBody);
     results.Remove(Id);
     return result;
 }
 public async Task<SummonerRuneInventory> GetSummonerRuneInventory(Double summonerId)
 {
     int Id = Invoke("summonerRuneService", "getSummonerRuneInventory", new object[] { summonerId });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     SummonerRuneInventory result = new SummonerRuneInventory(messageBody);
     results.Remove(Id);
     return result;
 }