private async void GetTeams() { PlayerDTO allTeams = await Client.PVPNet.FindPlayer(Client.LoginPacket.AllSummonerData.Summoner.SumId); if (allTeams.TeamsSummary != null) { foreach (var item in allTeams.TeamsSummary) { TeamDTO teams = new PVPNetConnect.RiotObjects.Team.Dto.TeamDTO((TypedObject)item); TeamList.Items.Add(teams.Name); TeamIdList.Add(teams.TeamId); } } else { Title.Content = "Join a team first"; SelectTeam.IsEnabled = false; } }
public TeamDTO KickPlayer(double summonerId, TeamId teamId) { int Id = Invoke("summonerTeamService", "kickPlayer", new object[] { summonerId, teamId.GetBaseTypedObject() }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); TeamDTO result = new TeamDTO(messageBody); results.Remove(Id); return result; }
/// 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); }
public TeamDTO CreateTeam(String teamName, string tagName) { int Id = Invoke("summonerTeamService", "createTeam", new object[] { teamName, tagName }); while (!results.ContainsKey(Id)) System.Threading.Thread.Sleep(10); TypedObject messageBody = results[Id].GetTO("data").GetTO("body"); TeamDTO result = new TeamDTO(messageBody); results.Remove(Id); return result; }
/// 30.) public void CreateTeam(String teamName, string tagName, TeamDTO.Callback callback) { TeamDTO cb = new TeamDTO(callback); InvokeWithCallback("summonerTeamService", "createTeam", new object[] { teamName, tagName }, cb); }
public void FindTeamByName(string TeamName, TeamDTO.Callback callback) { TeamDTO cb = new TeamDTO(callback); InvokeWithCallback("summonerTeamService", "findTeamByName", new object[] { TeamName }, cb); }
/// 23.) public void FindTeamById(TeamId teamId, TeamDTO.Callback callback) { TeamDTO cb = new TeamDTO(callback); InvokeWithCallback("summonerTeamService", "findTeamById", new object[] { teamId.GetBaseTypedObject() }, cb); }
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; }
public async Task<TeamDTO> CreateTeam(String teamName, String tagName) { int Id = Invoke("summonerTeamService", "createTeam", new object[] { teamName, tagName }); 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; }
public async Task<TeamDTO> FindTeamByName(string TeamName) { int Id = Invoke("summonerTeamService", "findTeamByName", new object[] { TeamName }); 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; }