/// 12.) public void GetChallengerLeague(String queueType, LeagueListDTO.Callback callback) { LeagueListDTO cb = new LeagueListDTO(callback); InvokeWithCallback("leaguesServiceProxy", "getChallengerLeague", new object[] { queueType }, cb); }
/// <summary> /// kep /// </summary> /// <param name="queueType"></param> /// <returns></returns> public LeagueListDTO GetChallengerLeague(String queueType) { int Id = Invoke("leaguesServiceProxy", "getChallengerLeague", new object[] { queueType }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); LeagueListDTO result = new LeagueListDTO(messageBody); results.Remove(Id); return result; }
/// <summary> /// kep /// </summary> /// <param name="queueType"></param> /// <returns></returns> public async Task<LeagueListDTO> GetChallengerLeague(String queueType) { int Id = Invoke("leaguesServiceProxy", "getChallengerLeague", new object[] { queueType }); while (!results.ContainsKey(Id)) await Task.Delay(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); LeagueListDTO result = new LeagueListDTO(messageBody); results.Remove(Id); return result; }