public async Task<SpellBookDTO> GetSpellBook(Double summonerId) { int Id = Invoke("spellBookService", "getSpellBook", new object[] { summonerId }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); SpellBookDTO result = new SpellBookDTO(messageBody); results.Remove(Id); return result; }
/// 36.) public void GetSpellBook(Double summonerId, SpellBookDTO.Callback callback) { SpellBookDTO cb = new SpellBookDTO(callback); InvokeWithCallback("spellBookService", "getSpellBook", new object[] { summonerId }, cb); }