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