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; }
/// 12.) public void GetChallengerLeague(String queueType, LeagueListDTO.Callback callback) { LeagueListDTO cb = new LeagueListDTO(callback); InvokeWithCallback("leaguesServiceProxy", "getChallengerLeague", new object[] { queueType }, cb); }