public async Task<SummonerLeaguesDTO> GetAllLeaguesForPlayer(Double summonerId) { int Id = Invoke("leaguesServiceProxy", "getAllLeaguesForPlayer", new object[] { summonerId }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); SummonerLeaguesDTO result = new SummonerLeaguesDTO(messageBody); results.Remove(Id); return result; }
/// 33.) public void GetAllLeaguesForPlayer(Double summonerId, SummonerLeaguesDTO.Callback callback) { SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback); InvokeWithCallback("leaguesServiceProxy", "getAllLeaguesForPlayer", new object[] { summonerId }, cb); }
/// 24.) public void GetLeaguesForTeam(String teamName, SummonerLeaguesDTO.Callback callback) { SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback); InvokeWithCallback("leaguesServiceProxy", "getLeaguesForTeam", new object[] { teamName }, cb); }
public async Task<SummonerLeaguesDTO> GetLeaguesForTeam(String teamName) { int Id = Invoke("leaguesServiceProxy", "getLeaguesForTeam", new object[] { teamName }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); SummonerLeaguesDTO result = new SummonerLeaguesDTO(messageBody); results.Remove(Id); return result; }
/// 13.) public void GetAllMyLeagues(SummonerLeaguesDTO.Callback callback) { SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback); InvokeWithCallback("leaguesServiceProxy", "getAllMyLeagues", new object[] { }, cb); }