Esempio n. 1
0
 /// 32.)
 public void KickPlayer(Double summonerId, TeamId teamId, TeamDTO.Callback callback)
 {
     TeamDTO cb = new TeamDTO(callback);
     InvokeWithCallback("summonerTeamService", "kickPlayer", new object[] { summonerId, teamId.GetBaseTypedObject() }, cb);
 }
Esempio n. 2
0
 public async Task<TeamDTO> KickPlayer(Double summonerId, TeamId teamId)
 {
     int Id = Invoke("summonerTeamService", "kickPlayer", new object[] { summonerId, teamId.GetBaseTypedObject() });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     TeamDTO result = new TeamDTO(messageBody);
     results.Remove(Id);
     return result;
 }
Esempio n. 3
0
 /// 27.)
 public async Task<object> DisbandTeam(TeamId teamId)
 {
     int Id = Invoke("summonerTeamService", "disbandTeam", new object[] { teamId.GetBaseTypedObject() });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     results.Remove(Id);
     return null;
 }
Esempio n. 4
0
 public async Task<EndOfGameStats> GetTeamEndOfGameStats(TeamId arg0, Double arg1)
 {
     int Id = Invoke("playerStatsService", "getTeamEndOfGameStats", new object[] { arg0.GetBaseTypedObject(), arg1 });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TypedObject messageBody = results[Id].GetTO("data").GetTO("body");
     EndOfGameStats result = new EndOfGameStats(messageBody);
     results.Remove(Id);
     return result;
 }
Esempio n. 5
0
 /// 26.)
 public void GetTeamEndOfGameStats(TeamId arg0, Double arg1, EndOfGameStats.Callback callback)
 {
     EndOfGameStats cb = new EndOfGameStats(callback);
     InvokeWithCallback("playerStatsService", "getTeamEndOfGameStats", new object[] { arg0.GetBaseTypedObject(), arg1 }, cb);
 }
Esempio n. 6
0
 /// 25.)
 public async Task<TeamAggregatedStatsDTO[]> GetTeamAggregatedStats(TeamId arg0)
 {
     int Id = Invoke("playerStatsService", "getTeamAggregatedStats", new object[] { arg0.GetBaseTypedObject() });
     while (!results.ContainsKey(Id))
         await Task.Delay(10);
     TeamAggregatedStatsDTO[] result = new TeamAggregatedStatsDTO[results[Id].GetTO("data").GetArray("body").Length];
     for (int i = 0; i < results[Id].GetTO("data").GetArray("body").Length; i++)
     {
         result[i] = new TeamAggregatedStatsDTO((TypedObject)results[Id].GetTO("data").GetArray("body")[i]);
     }
     results.Remove(Id);
     return result;
 }
Esempio n. 7
0
 /// 23.)
 public void FindTeamById(TeamId teamId, TeamDTO.Callback callback)
 {
     TeamDTO cb = new TeamDTO(callback);
     InvokeWithCallback("summonerTeamService", "findTeamById", new object[] { teamId.GetBaseTypedObject() }, cb);
 }