コード例 #1
0
 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;
 }
コード例 #2
0
 /// 33.)
 public void GetAllLeaguesForPlayer(Double summonerId, SummonerLeaguesDTO.Callback callback)
 {
     SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback);
     InvokeWithCallback("leaguesServiceProxy", "getAllLeaguesForPlayer", new object[] { summonerId }, cb);
 }
コード例 #3
0
 /// 24.)
 public void GetLeaguesForTeam(String teamName, SummonerLeaguesDTO.Callback callback)
 {
     SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback);
     InvokeWithCallback("leaguesServiceProxy", "getLeaguesForTeam", new object[] { teamName }, cb);
 }
コード例 #4
0
 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;
 }
コード例 #5
0
 /// 13.)
 public void GetAllMyLeagues(SummonerLeaguesDTO.Callback callback)
 {
     SummonerLeaguesDTO cb = new SummonerLeaguesDTO(callback);
     InvokeWithCallback("leaguesServiceProxy", "getAllMyLeagues", new object[] { }, cb);
 }