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; }
/// 5.) public void GetSummonerRuneInventory(Double summonerId, SummonerRuneInventory.Callback callback) { SummonerRuneInventory cb = new SummonerRuneInventory(callback); InvokeWithCallback("summonerRuneService", "getSummonerRuneInventory", new object[] { summonerId }, cb); }