public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int accId = Convert.ToInt32(body[0]); string unknown = Convert.ToString(body[1]); ArrayCollection rData = new ArrayCollection() { new ChampionStatInfo() { ChampionId = 17 }, new ChampionStatInfo() { ChampionId = 17 }, new ChampionStatInfo() { ChampionId = 17 } }; e.ReturnRequired = true; e.Data = rData; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; SummonerIconInventoryDTO SummonerIconInventory = new SummonerIconInventoryDTO { SummonerId = int.MaxValue - 1, DateString = "Wed Apr 23 00:33:57 PDT 2014", SummonerIcons = new ArrayCollection() }; foreach (var iconData in DatabaseManager.ProfileIcons) { var iconDto = new SummonerIcon { Icon = new object(), SummonerId = summonerSender._sumLvl, IconId = iconData, PurchaseDate = "/Date(1383172733000)/" }; SummonerIconInventory.SummonerIcons.Add(iconDto); } e.ReturnRequired = true; e.Data = SummonerIconInventory; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerClient = sender as SummonerClient; var payload = new LobbyStatus { Owner = new InvitationPlayer { SummonerId = 1, SummonerName = "Maufeat", }, Members = new ArrayCollection { new Member { SummonerId = 1, SummonerName = "Maufeat", HasDelegatedInvitePower = false } }, Invitees = new ArrayCollection { }, InvitationId = "", GameMetaData = "{\"mapId\":11,\"gameMode\":\"CLASSIC\",\"gameMutators\":[],\"gameType\":\"NORMAL_GAME\",\"queueId\":2,\"isRanked\":false,\"gameId\":1,\"groupFinderId\":\"00000000-0000-0000-0000-000000000000\",\"gameTypeConfigId\":18}", }; e.ReturnRequired = true; e.Data = payload; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int accId = Convert.ToInt32(body[0]); int unknown = Convert.ToInt32(body[1]); PlayerLifetimeStats PLSData = new PlayerLifetimeStats() { PlayerStatSummaries = new PlayerStatSummaries() { Season = 6, }, PreviousFirstWinOfDay = new DateTime(2016, 08, 11, 12, 00, 00), UserId = Convert.ToInt32(summonerSender._sumId), DodgeStreak = 0, DodgePenaltyDate = null, PlayerStatsJson = null, PlayerStats = new PlayerStats() { TimeTrackedStats = new RtmpSharp.IO.AMF3.ArrayCollection() { }, PromoGamesPlayed = 0, PromoGamesPlayedLastUpdate = null, LifetimeGamesPlayed = null } }; e.ReturnRequired = true; e.Data = PLSData; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; int[] points = new int[4] { 9, 9, 9, 9 }; var obj = new Dictionary <string, int[]> { { "totals", new int[4] { 4, 4, 4, 4 } } }; var res = new LcdsResponseString { Value = JsonConvert.SerializeObject(obj) }; e.ReturnRequired = true; e.Data = res; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int accId = Convert.ToInt32(body[0]); string unknown = Convert.ToString(body[1]); ArrayCollection rData = new ArrayCollection() { new ChampionStatInfo() { TotalGammesPlayed = 9999, AccountId = Convert.ToInt32(summonerSender._session.Summary.AccountId), Stats = new ArrayCollection() { }, ChampionId = 0 }, new ChampionStatInfo() { TotalGammesPlayed = 9999, AccountId = Convert.ToInt32(summonerSender._session.Summary.AccountId), Stats = new ArrayCollection() { }, ChampionId = 25 }, new ChampionStatInfo() { TotalGammesPlayed = 9999, AccountId = Convert.ToInt32(summonerSender._session.Summary.AccountId), Stats = new ArrayCollection() { }, ChampionId = 267 }, new ChampionStatInfo() { TotalGammesPlayed = 9999, AccountId = Convert.ToInt32(summonerSender._session.Summary.AccountId), Stats = new ArrayCollection() { }, ChampionId = 12 } }; e.ReturnRequired = true; e.Data = rData; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int creds = Convert.ToInt32(body[0]); DatabaseManager.updateSummonerIconById((int)summonerSender._sumId, creds); e.ReturnRequired = true; e.Data = null; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; e.ReturnRequired = true; e.Data = new PlayerDTO() { PlayerId = Convert.ToInt64(summonerSender._sumId), TeamsSummary = new ArrayCollection(), CreatedTeams = new ArrayCollection(), PlayerTeams = new ArrayCollection() }; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; AuthenticationCredentials creds = body[0] as AuthenticationCredentials; //Console.WriteLine("Login von: " + creds.Username + " : " + creds.Password); RtmpClient client = sender as RtmpClient; SummonerClient newClient = new SummonerClient(client, creds.Username); Dictionary <string, string> Data = DatabaseManager.getAccountData(creds.Username, creds.Password); Dictionary <string, string> SummonerData = DatabaseManager.getSummonerData(Data["summonerId"]); Session session = new Session { Password = creds.Password, Summary = new AccountSummary { AccountId = Convert.ToDouble(Data["id"]), Username = creds.Username, HasBetaAccess = true, IsAdministrator = true, PartnerMode = true, NeedsPasswordReset = false }, Token = creds.AuthToken }; newClient.setSession(session); newClient._accId = Convert.ToDouble(Data["id"]); newClient._sumId = Convert.ToDouble(SummonerData["id"]); newClient._summonername = SummonerData["summonerName"]; newClient._sumIcon = Convert.ToDouble(SummonerData["icon"]); newClient._IP = Convert.ToDouble(Data["IP"]); newClient._RP = Convert.ToDouble(Data["RP"]); e.ReturnRequired = true; e.Data = session; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; SummonerActiveBoostsDTO activeBoosts = new SummonerActiveBoostsDTO { SummonerID = Convert.ToInt32(summonerSender._sumId), IPBoostEndDate = 0.0, XPBoostEndDate = 0.0, IPBoostPerWinCount = 5, XPBoostPerWinCount = 5, }; e.ReturnRequired = true; e.Data = activeBoosts; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; Console.WriteLine("[" + summonerSender._session.Summary.Username + "][0] : " + Convert.ToString(body[1])); Console.WriteLine("[" + summonerSender._session.Summary.Username + "][1] : " + Convert.ToString(body[2])); Console.WriteLine("[" + summonerSender._session.Summary.Username + "][2] : " + Convert.ToString(body[3])); //Console.WriteLine("[" + summonerSender._session.Summary.Username + "][3] : " + Convert.ToString(body[4])); dynamic payloader = ""; string methodName = ""; switch (Convert.ToString(body[1])) { case "requestSelectedWardSkin": payloader = new System.Collections.Generic.Dictionary <string, int>(); payloader.Add("selectedWardSkinId", 41); methodName = "receiveSelectedWardSkin"; break; default: payloader = null; break; } LcdsServiceProxyResponse lspr = new LcdsServiceProxyResponse() { Payload = payloader, Status = "OK", MessageId = "message", MethodName = methodName, ServiceName = Convert.ToString(body[0]) }; summonerSender._rtmpClient.InvokeDestReceive("cn-" + summonerSender._rtmpClient.ClientId, "cn-" + summonerSender._rtmpClient.ClientId, "messagingDestination", lspr); e.ReturnRequired = true; e.Data = null; return(e); }
static void ClientMessageReceived(object sender, RemotingMessageReceivedEventArgs e) { try { RemotingMessageReceivedEventArgs tempRecv = null; if (e.Operation == "login") { tempRecv = _handler.Handle(sender, e); } RtmpClient client = sender as RtmpClient; SummonerClient targetSummoner = _connectedClients.FirstOrDefault(tSum => tSum._rtmpClient.ClientId == client.ClientId); if (e.Operation != "login") { tempRecv = _handler.Handle(targetSummoner, e); } LogRequest(tempRecv, e, targetSummoner); e = tempRecv; } catch (Exception ex) { Console.WriteLine(ex.Message); } }
static async Task Main(string[] args) { var apiKey = "XXXXX-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"; var uri = new Uri("https://na1.api.riotgames.com"); #region Clients code, creates HttpClient client var client = new HttpClient(); client.DefaultRequestHeaders.Accept.Clear(); client.DefaultRequestHeaders.Accept.Add( new MediaTypeWithQualityHeaderValue("application/json")); #endregion #region Get User Input Console.WriteLine("Please enter summoner name:"); var summonerName = Console.ReadLine(); #endregion #region Get/Deserialize Json to Models var uriFactory = new UriFactory(uri.AbsoluteUri, apiKey); var summonerClient = new SummonerClient(summonerName, uriFactory, client); var summonerModel = await summonerClient.GetSummonerModelAsync().ConfigureAwait(false); var leagueEntryClient = new LeagueEntryClient(summonerModel.Id, uriFactory, client); var matchClient = new MatchClient(summonerModel.AccountId, uriFactory, client); var matchListTask = matchClient.GetMatchListModelAsync(); var leagueEntryTask = leagueEntryClient.GetLeagueEntryModelsAsync(); await Task.WhenAll(matchListTask, leagueEntryTask).ConfigureAwait(false); var matchListModel = await matchListTask.ConfigureAwait(false); var matchId = matchListModel.MostRecentMatchId; var timelineClient = new TimelineClient(matchId, client, uriFactory); var timelineModel = await timelineClient.GetMatchTimelineModelAsync(); var leagueEntryModels = await leagueEntryTask.ConfigureAwait(false); var matchModel = await matchClient.GetMatchModelAsync(matchListModel.MostRecentMatchId).ConfigureAwait(false); var allMatchModels = await matchClient.GetAllMatchModelsAsync().ConfigureAwait(false); #endregion #region get datadragon information var dataDragonClient = new DataDragonClient(client); var championsDictionary = await dataDragonClient.GetChampionsAsync().ConfigureAwait(false); #endregion #region MatchHistoryViewModel test var matchListViewModel = new MatchHistoryViewModel(matchListModel); Console.WriteLine("Please enter number of matches you'd like to review."); var matchQty = Console.ReadLine(); if (int.TryParse(matchQty, out int matches)) { Console.WriteLine(matchListViewModel.DisplayMatches(matches, championsDictionary)); } #endregion #region Display Output //Console.WriteLine(); //Console.WriteLine(summonerModel.Name); //Console.WriteLine(matchListModel.MostRecentMatchId.ToString()); //Console.WriteLine(matchModel.GameMode); //Console.WriteLine(leagueEntryModels[0].Tier); //Console.ReadLine(); #endregion }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; string creds = Convert.ToString(body[0]); LeagueListDTO rData; switch (creds) { case "RANKED_SOLO_5x5": rData = new LeagueListDTO() { Queue = "RANKED_SOLO_5x5", Name = "Sahin The Master", Tier = "CHALLENGER", RequestorsRank = "null", Entries = new List <LeagueItemDTO> { new LeagueItemDTO { PreviousDayLeaguePosition = 1, SeasonEndTier = "CHALLENGER", SeasonEndRank = "I", HotStreak = true, LeagueName = "Sahin The Master", MiniSeries = null, Tier = "CHALLENGER", FreshBlood = true, LastPlayed = 0, TimeUntilInactivityStatusChanges = 0, InactivityStatus = "OK", PlayerOrTeamId = "1", LeaguePoints = 9999, DemotionWarning = 0, Inactive = false, SeasonEndApexPosition = 1, Rank = "I", Veteran = true, QueueType = "RANKED_SOLO_5x5", Losses = 0, TimeUntilDecay = -1, DisplayDecayWarning = false, PlayerOrteamName = "Maufeat", Wins = 999, ApexDaysUntilDecay = 0, LeaguePointsDelta = 9999, PlayStyle = new ArrayCollection(), PlayStyleReminingWins = 1, TimeLastDecayMessageShown = 0 } }, NextApexUpdate = 7430971, MaxLeagueSize = 200, RequestorsName = null }; break; case "RANKED_TEAM_3x3": rData = null; break; case "RANKED_TEAM_5x5": rData = null; break; default: rData = null; break; } e.ReturnRequired = true; e.Data = rData; return(e); }
static void LogRequest(RemotingMessageReceivedEventArgs tempRecv, RemotingMessageReceivedEventArgs e, SummonerClient sc) { if (tempRecv == null) { Console.WriteLine(string.Format("[LOG][{2}] Bad request for {0} : {1}", e.Operation, e.Destination, sc._session.Summary.Username)); } else { Console.WriteLine(string.Format("[LOG][{2}] Request for {0} : {1}", e.Operation, e.Destination, sc._session.Summary.Username)); } }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int creds = Convert.ToInt32(body[0]); AllSummonerData allSD = new AllSummonerData() { SummonerDefaultSpells = new SummonerDefaultSpells() { SummonerId = summonerSender._sumId, SpellDefault1 = new ArrayCollection(), SpellDefault2 = new ArrayCollection() }, SummonerTalentsAndPoints = new SummonerTalentsAndPoints() { TalentPoints = 30, ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), CreateDate = new DateTime(2016, 08, 11, 12, 00, 00), SummonerId = summonerSender._sumId }, Summoner = new Summoner() { InternalName = summonerSender._session.Summary.Username, PreviousSeasonHighestTier = "CHALLENGER", PreviousSeasonHighestTeamReward = 5, AcctId = summonerSender._accId, HelpFlag = false, SumId = summonerSender._sumId, ProfileIconId = Convert.ToInt32(summonerSender._sumIcon), DisplayEloQuestionaire = false, LastGameDate = new DateTime(2016, 08, 11, 12, 00, 00), RevisionDate = new DateTime(2016, 08, 11, 12, 00, 00), AdvancedTutorialFlag = false, RevisionId = 1, Name = summonerSender._summonername, NameChangeFlag = false, TutorialFlag = false, SummonerId = summonerSender._sumId }, SummonerLevel = new SummonerLevel { ExpTierMod = 1.0, SummonerTier = 5.0, InfTierMod = 1.0, ExpToNextLevel = 32651, Level = 30.0 }, SummonerLevelAndPoints = new SummonerLevelAndPoints { InfPoints = 0, ExpPoints = 32651, SummonerId = summonerSender._sumId, SummonerLevel = 30 }, SpellBook = new SpellBookDTO { SummonerId = summonerSender._sumId, DateString = "Wed Jul 17 23:05:42 PDT 2013", BookPages = new ArrayCollection { new SpellBookPageDTO { Current = true, SummonerId = summonerSender._sumId, PageId = 2.0, CreateDate = DateTime.Now, Name = "Rune Page 1", SlotEntries = new ArrayCollection() }, new SpellBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 3.0, CreateDate = DateTime.Now, Name = "Rune Page 2", SlotEntries = new ArrayCollection() } } }, }; Console.WriteLine(JsonConvert.SerializeObject(allSD)); e.ReturnRequired = true; e.Data = allSD; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { object[] body = e.Body as object[]; SummonerClient summonerSender = sender as SummonerClient; int creds = Convert.ToInt32(body[0]); Console.WriteLine("Tries to get ALlSummonerDataByAccount from ID: " + creds); AllSummonerData allSD = new AllSummonerData() { SpellBook = new SpellBookDTO() { BookPagesJson = null, BookPages = null, DateString = "Tue Dec 02 03:23:04 UTC 2014", SummonerId = summonerSender._sumId }, SummonerDefaultSpells = new SummonerDefaultSpells() { SummonerDefaultSpellsJson = null, SummonerDefaultSpellMap = null, SummonerId = summonerSender._sumId }, SummonerTalentsAndPoints = new SummonerTalentsAndPoints() { TalentPoints = 30, ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), CreateDate = new DateTime(2016, 08, 11, 12, 00, 00), SummonerId = summonerSender._sumId }, Summoner = new Summoner() { InternalName = summonerSender._session.Summary.InternalName, PreviousSeasonHighestTier = "CHALLENGER", AcctId = summonerSender._session.Summary.AccountId, HelpFlag = false, SumId = summonerSender._sumId, ProfileIconId = Convert.ToInt32(summonerSender._sumIcon), DisplayEloQuestionaire = false, LastGameDate = new DateTime(2016, 08, 11, 12, 00, 00), PreviousSeasonHighestTeamReward = 0, RevisionDate = new DateTime(2016, 08, 11, 12, 00, 00), AdvancedTutorialFlag = false, RevisionId = 0, Name = summonerSender._session.Summary.SummonerName, NameChangeFlag = false, TutorialFlag = false }, MasteryBook = new MasteryBookDTO() { BookPagesJson = null, BookPages = null, DateString = "Tue Dec 02 03:23:04 UTC 2014", SummonerId = summonerSender._sumId }, SummonerLevelAndPoints = new SummonerLevelAndPoints() { InfPoints = 69974, ExpPoints = 44, SummonerLevel = summonerSender._sumLvl, SummonerId = summonerSender._sumId }, SummonerLevel = new SummonerLevel() { ExpTierMod = 1, GrantRp = 0, ExpForLoss = 0, SummonerTier = 1, InfTierMod = 1, ExpToNextLevel = 1250, ExpForWin = 0, Level = summonerSender._sumLvl } }; e.ReturnRequired = true; e.Data = allSD; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; MasteryBookDTO MasteryBook = new MasteryBookDTO { SummonerId = summonerSender._sumId, DateString = "", BookPages = new ArrayCollection() { new MasteryBookPageDTO { Current = true, SummonerId = summonerSender._sumId, PageId = 1, Name = "Mastery Page 1", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 2, Name = "Mastery Page 2", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 3, Name = "Mastery Page 3", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 4, Name = "Mastery Page 4", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 5, Name = "Mastery Page 5", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 6, Name = "Mastery Page 6", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 7, Name = "Mastery Page 7", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 8, Name = "Mastery Page 8", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 9, Name = "Mastery Page 9", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 10, Name = "Mastery Page 10", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 11, Name = "Mastery Page 11", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 12, Name = "Mastery Page 12", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 13, Name = "Mastery Page 13", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 14, Name = "Mastery Page 14", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 15, Name = "Mastery Page 15", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 16, Name = "Mastery Page 16", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 17, Name = "Mastery Page 17", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 18, Name = "Mastery Page 18", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 19, Name = "Mastery Page 19", Entries = new ArrayCollection() }, new MasteryBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 20, Name = "Mastery Page 20", Entries = new ArrayCollection() }, } }; e.ReturnRequired = true; e.Data = MasteryBook; return(e); }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; object[] body = e.Body as object[]; int accId = Convert.ToInt32(body[0]); int unknown = Convert.ToInt32(body[1]); PlayerLifetimeStats PLSData = new PlayerLifetimeStats() { PlayerStatSummaries = new PlayerStatSummaries() { UserID = Convert.ToInt32(summonerSender._sumId), SummaryList = new RtmpSharp.IO.AMF3.ArrayCollection() { new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "AramUnranked5x5", Wins = 9000, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, } } }, new PlayerStatSummary() { Type = "RankedSolo5x5", MaxRating = 3000, Rating = 3000, ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Wins = 55, Losses = 5, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, }, new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "RankedTeam5x5", Losses = 1337, Wins = 9000, Leaves = 0, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, UserId = Convert.ToInt32(summonerSender._sumId), }, new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "Unranked", Losses = 1337, Wins = 9000, Leaves = 0, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, }, } }, PreviousFirstWinOfDay = new DateTime(2016, 08, 11, 12, 00, 00), UserId = Convert.ToInt32(summonerSender._sumId), PlayerStats = new PlayerStats { PromoGamesPlayed = 11, PromoGamesPlayedLastUpdate = DateTime.Now }, GameStatistics = new RtmpSharp.IO.AMF3.ArrayCollection() { new PlayerGameStats { ChampionId = 17, CreateDate = DateTime.Now, ExperienceEarned = 9999, IPEarned = 9999, FellowPlayers = new RtmpSharp.IO.AMF3.ArrayCollection(), GameId = 1, GameMapId = 11, GameMode = "CLASSIC", GameMutators = new RtmpSharp.IO.AMF3.ArrayCollection(), GameType = "RankedSolo5x5", Invalid = false, Leaver = false, LeveledUp = true, QueueType = "RANKED_SOLO_5x5", Ranked = true, RawStats = new RtmpSharp.IO.AMF3.ArrayCollection(), Spell1 = 5, Spell2 = 5, Statistics = null, TeamId = 100, UserId = summonerSender._sumId } } }; e.ReturnRequired = true; e.Data = PLSData; return(e); }
static void ClientCommandReceieved(object sender, CommandMessageReceivedEventArgs e) { RtmpClient client = sender as RtmpClient; SummonerClient targetSummoner = _connectedClients.FirstOrDefault <SummonerClient>(tSum => client.ClientId == tSum._rtmpClient.ClientId); if (e.Message.Operation == CommandOperation.Login) { var configData = new Dictionary <string, dynamic> { { "LootConfig", new Dictionary <string, dynamic> { { "NewPlayerChestEnabled", true }, { "Enabled", true }, { "PurchaseChestsEnabled", true }, { "MinSummonerLevel", 5 }, { "Visible", true }, { "NoRefundConfirmationEnabled", true }, { "EventChestsEnabled", true }, } }, { "ChampionMasteryConfig", new Dictionary <string, dynamic> { { "Enabled", true }, { "MinSummonerLevel", 1 }, { "EndOfGameEnabled", false }, { "SupportedQueueTypes", "RANKED_SOLO_5x5," }, { "MaxChampionLevel", 5 }, { "LootChestsEnabled", true }, { "ShowGradeAvailablePopup", true }, { "ChampionPointQueueTypes", "RANKED_SOLO_5x5," }, { "GradeEnabled", true }, { "CapUnlockChampionLevel", 5 } } } }; ClientDynamicConfigurationNotification clientConfig = new ClientDynamicConfigurationNotification { Delta = false, //Config = JsonConvert.SerializeObject(configData) //TODO: not have this data stored in code Config = "{\"Chroma\":{\"IsEnabled\":true},\"LcuAlphaShutdown\":{\"Countdown\":15,\"Enabled\":true},\"Masteries\":{\"ShowPointsResetMessage\":false},\"DisabledChampion\":{\"ODINBOT-5x5\":null},\"PlatformShutdown\":{\"Enabled\":false},\"BotConfigurations\":{\"IntermediateInCustoms\":true},\"ShareMatchHistory\":{\"MatchHistoryUrlTemplate\":\"http://matchhistory.euw.leagueoflegends.com/{2}/#login?redirect=%23player-search%2FcurrentAccount%2FEUW1%2F{0}\",\"AdvancedGameDetailsUrlTemplate\":\"http://matchhistory.euw.leagueoflegends.com/{2}/#match-details/EUW1/{0}/{1}/eog\",\"AdvancedGameDetailsEnabled\":false,\"MatchDetailsUrlTemplate\":\"http://matchhistory.euw.leagueoflegends.com/{2}/#match-details/EUW1/{0}/{1}\",\"ShareEndOfGameEnabled\":true,\"ShareGameUrlTemplate\":\"http://matchhistory.euw.leagueoflegends.com/{2}/#match-details/EUW1/{0}/{1}/eog\",\"MatchHistoryEnabled\":true},\"CustomGame\":{\"BotsAvailableInAram\":false},\"GuestSlots\":{\"Enabled\":null},\"ServiceStatusAPI\":{\"Enabled\":true},\"FriendRecommendations\":{\"FaqLink\":\"http://euw.leagueoflegends.com/{0}/page/features/faq-add-friends\",\"StatusExpiryMillis\":300000,\"EnableAddFriendButton\":true,\"EnabledPercent\":100,\"ShowToolTip\":true,\"RegistrationPollRateMillis\":5000,\"HideFriends\":false,\"PlayerLevelForNewNotification\":5,\"RegistrationPollDurationMillis\":300000,\"ContactsUrlTemplate\":\"https://recofriender.leagueoflegends.com/v1/contacts/{0}/{1}\",\"ContactDetailsUrlTemplate\":\"https://recofriender.leagueoflegends.com/v1/contactdetails/{0}/{1}/{2}/\",\"AssociationUrlTemplate\":\"https://recofriender.leagueoflegends.com/v1/facebook-oauth?locale={0}\",\"EnableViewAllPanel\":true,\"UnlinkUrlTemplate\":\"https://recofriender.leagueoflegends.com/v1/facebook-oauth/unlink/{0}/{1}\",\"UseNativeFacebookPop\":false},\"GameTimerSync\":{\"Enabled\":false,\"PercentOfTotalTimerToSyncAt\":0.8},\"DockedPrompt\":{\"EnabledNewDockedPromptRenderer\":true},\"QueueRestriction\":{\"ServiceEnabled\":true,\"RankedDuoQueueRestrictionMode\":\"TIER\",\"RankedLowSkillRestrictionMaxDelta\":1,\"KarmaEnabled\":true,\"RankedDuoQueueRestrictionMaxDelta\":1,\"RankedHighSkillLowestTier\":\"DIAMOND\",\"RankedLowSkillRestrictionMode\":\"TIER\",\"RankedHighSkillRestrictionMaxDelta\":2,\"RankedHighSkillRestrictionMode\":\"RANK\",\"RankedDuoQueueDefaultUnseededTier\":\"SILVER\"},\"PartyRewards\":{\"Enabled\":false,\"GameFlowVisualUpdate\":false},\"QueueImages\":{\"OverrideQueueImage\":true},\"PlayerFeedbackTool\":{\"BackendUrl\":\"\"},\"TeamBoost\":{\"RandomSkinEnabled\":\"ON\",\"AllSkinEnabled\":\"OFF\"},\"SuggestedPlayers\":{\"HonoredPlayersLimit\":4,\"FriendsOfFriendsLimit\":22,\"Enabled\":true,\"OnlineFriendsLimit\":4,\"PreviousPremadesLimit\":4,\"MaxNumSuggestedPlayers\":8,\"VictoriousComradesLimit\":4,\"FriendsOfFriendsEnabled\":true,\"MaxNumReplacements\":22},\"PersonalizedOffers\":{\"BaseServiceURL\":\"po-service.euw1.leagueoflegends.com\",\"Port\":443,\"ServiceConfig\":\"[{\\\"endpoint\\\":\\\"/player/offers\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"},{\\\"endpoint\\\":\\\"/player/offers/accept\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/offers/deny\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/offers/view\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/wallet\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"},{\\\"endpoint\\\":\\\"/player/authenticate\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/payletter\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"}]\",\"ServicePath\":\"personalized-offers/\",\"HubEnabled\":false,\"Protocol\":\"https://\"},\"DisabledChampions\":{\"ARAM_BOT\":\"[]\",\"KINGPORO\":\"[]\",\"FIRSTBLOOD\":\"[]\",\"ARAM_UNRANKED_5x5\":\"[]\",\"ONEFORALL_5x5\":\"[17,30]\",\"ODINBOT-5x5\":\"[14]\",\"ASCENSION\":\"[]\",\"SR_6x6\":\"[]\",\"BILGEWATER\":\"[]\",\"KING_PORO\":\"[]\",\"ODIN_UNRANKED\":\"[]\",\"URF\":\"[]\",\"ODINBOT\":\"[14]\",\"NIGHTMARE_BOT\":\"[]\",\"ODINBOT_5x5\":\"[14]\",\"RANKED_SOLO_5x5\":\"[]\",\"TUTORIAL\":\"[]\",\"URF_BOT\":\"[]\",\"KINGPORO-5X5\":\"[161]\",\"FIRSTBLOOD_1x1\":\"[]\",\"FIRSTBLOOD_2x2\":\"[]\",\"CLASSIC\":\"[]\",\"RANKED_TEAM_5x5\":\"[]\",\"COUNTER_PICK\":\"[]\",\"RANKED_TEAM_3x3\":\"[]\",\"HEXAKILL\":\"[]\",\"BOT\":\"[]\",\"ODIN\":\"[]\",\"RANKED_PREMADE_3x3\":\"[]\",\"ONEFORALL\":\"[17,30]\",\"NORMAL\":\"[]\",\"BOT_3x3\":\"[]\",\"NORMAL_3x3\":\"[]\",\"ARAM\":\"[]\",\"RANKED_PREMADE_5x5\":\"[]\"},\"PersonlizedOffers\":{\"Port\":443,\"BaseServiceURL\":\"po-service.usw2.leagueoflegends.com\",\"ServiceConfig\":\"[{\\\"endpoint\\\":\\\"/player/offers\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"},{\\\"endpoint\\\":\\\"/player/offers/accept\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/offers/deny\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/offers/view\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/wallet\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"},{\\\"endpoint\\\":\\\"/player/authenticate\\\",\\\"version\\\":1,\\\"operation\\\":\\\"POST\\\"},{\\\"endpoint\\\":\\\"/player/payletter\\\",\\\"version\\\":1,\\\"operation\\\":\\\"GET\\\"}]\",\"HubEnabled\":true,\"ServicePath\":\"personalized-offers/\",\"Protocol\":\"https://\"},\"Mutators\":{\"CustomGameMutators\":\"[]\",\"BattleTrainingMutators\":\"[]\",\"EnabledMutators\":\"[]\",\"BasicTutorialMutators\":\"[\\\"BasicTutorial\\\"]\",\"EnabledModes\":\"[\\\"CLASSIC\\\",\\\"TUTORIAL\\\",\\\"ARAM\\\"]\"},\"EndOfGameGifting\":{\"Enabled\":true},\"ProfileHoverCard\":{\"ACSLookup\":\"true\",\"IsEnabledForBuddyPanelView\":\"true\",\"CreateStringConfiguration\":null,\"IsEnabledForSummonerQuickView\":\"true\",\"IsEnabledForClubChatParticipants\":\"false\",\"IsEnabledForGameLobbySuggestedPlayers\":\"true\",\"IsEnabledForGroupFinderCapViewSuggestedPlayers\":null,\"IsEnabledForChatFriendsList\":\"true\",\"IsEnabledForChatGroupChatParticipants\":\"true\",\"IsEnabledForCustomGameLobby\":\"true\",\"IsEnabled\":\"true\",\"ChampionMasteryLookup\":\"true\",\"LeagueLookup\":\"true\",\"IsEnabledForTeamBuilderSuggestedPlayers\":\"true\"},\"SkinRentals\":{\"Enabled\":\"ON\"},\"ContextualEducation\":{\"TargetMinionsPerWave\":0.4,\"Enabled\":false,\"MaxTargetSummonerLevel\":10.0},\"DisabledChampionSkins\":{\"DisabledChampionSkins\":\"[]\"},\"ChampionMasteryConfig\":{\"Enabled\":true,\"MinSummonerLevel\":5,\"EndOfGameEnabled\":true,\"SupportedQueueTypes\":\"RANKED_SOLO_5x5,RANKED_TEAM_5x5,CAP_5x5,NORMAL,RANKED_PREMADE_3x3,RANKED_PREMADE_5x5,RANKED_TEAM_3x3,NORMAL_3x3,ARAM_UNRANKED_5x5,ASCENSION,KING_PORO\",\"MaxChampionLevel\":5,\"LootChestsEnabled\":true,\"ShowGradeAvailablePopup\":true,\"ChampionPointQueueTypes\":\"RANKED_SOLO_5x5,RANKED_TEAM_5x5,CAP_5x5,NORMAL,KING_PORO,ASCENSION\",\"GradeEnabled\":true,\"CapUnlockChampionLevel\":4},\"WardSkinConfig\":{\"WardSkinSelection\":true},\"EndOfGameGiftSettings\":{\"SenderGiftDailyMax\":5,\"GiftRecipientLevelMin\":5,\"GiftSenderRPMax\":50000,\"RecipientGiftDailyMax\":5,\"GiftSenderLevelMin\":15},\"Esports\":{\"NotificationsAssetMagickURL\":\"http://am-a.akamaihd.net/image/?f=\",\"NotificationsStreamGroupSlug\":\"eu-lcs,na-lcs\",\"NotificationsServiceEndpoint\":\"http://api.lolesports.com/api/v2/streamgroups\",\"NotificationsEnabled\":true,\"NotificationsStreamURL\":\"http://watch.lolesports.com?utm_source=euw_pvp_client\\u0026utm_medium=referral\\u0026utm_campaign=match_notifications\"},\"PlayerPreferences\":{\"Enabled\":true,\"ServiceEndpoint\":\"https://playerpreferences.riotgames.com:443\"},\"GameInvites\":{\"ServiceEnabled\":true,\"GameInviteServiceEnabled\":false,\"InviteBulkMaxSize\":200,\"LobbyCreationEnabled\":true},\"Chat\":{\"Rename_general_group_throttle\":1.0,\"Default_public_chat_rooms\":\"\",\"MaximumRosterSize\":325,\"ChatHistoryEnabled\":true,\"ChatHistoryThreshold\":1.0,\"MobileEnabled\":true},\"NewMatchHistory\":{\"Enabled\":true,\"PostIPXPToLegSEnabled\":true,\"SharingEnabled\":true},\"ContextualEducationURLs\":{\"LAST_HIT\":\"null\"},\"NewPlayerRouter\":{\"QueueID\":\"31\",\"ABDisablingOfTutorial\":true},\"TeamBuilderDraft\":{\"TakeoverEnabled\":true,\"SkinPurchaseEnabled\":false},\"Clubs\":{\"ClubsEnabled\":false,\"InviteToClubLobbyEnabled\":true,\"ClubServiceUrl\":\"https://clubs.leagueoflegends.com/\",\"ClubPresenceDecryptionKey\":\"-----BEGIN RSA PRIVATE KEY-----|MIICXAIBAAKBgQCIPHDgCEhsrODynDW4ecpo5JnQi31Iow9oq4x1pQvtMVynAtrq|zUj9eowbfi2dpcr8+fnpmJIs5+Q8LCT5KC2DmXVdzeDXR1VFh85GL7gSW81QWr0R|y1i/pLI5TIC+x1wx2zu74TmLm2rXCGnPmpYDWiLIg6AaKkgUKPaJe4i3DwIDAQAB|AoGAP1rELxsK+ybmMUy9mr1giKkOcrH7oCTcTJPCbQ9E3Zgf+zbTsW+n6uDrePmT|owVvwXdKZfxitelc9TKeOxQZHbN6ySjYmPWYRpzRzTK028TCxSoFA4Gbw7Y5pvCF|w6efflWMZFcbCY5pIhSRtl++hSk/xVTemXalEvnbIqMeZaECQQDXAAaurwa8D+6J|zcoZg1vBlQMOlxWEcZ8DBRXnC4K12EY2CXVCMHecCo3xPEw3zGi5bo9Hs9eff1j7|6E4AeZT/AkEAojdHA6DpZbjNKNIKzZbgo1q3aeHRHRpwYzRBdSjcxQrhS+JE2D5A|ZSAOg1OfnRuph+iOxaNHparSntAWLv2N8QJAYnyTkw+AMUPHDH8lVfyTWqDs7pEM|/UejBJoex2DBdpVkzDoW6cQT9nnrPZdWfrT3QAJCRiE+48RNOc/Xc2Y+dwJAHQvW|3HB4um0v10pdAtksWjPJOd1ki1iLnUfjHK53cZT0KJlYiHwFHdZyotNbdk9YuOxM|fFkzYBfJZQSPpFRkkQJBALAlNqBc4VPBKiwgBN9sHexfgCsVEnedrXsTsWXj1tCY|nK4RQUMFTs3uDucwju0fgLeef25CSdxxKBi2j1QhlzI=|-----END RSA PRIVATE KEY-----\"},\"SeasonReward\":{\"Maximum_team_reward_level\":3,\"Enabled\":false,\"ServiceCallEnabled\":true,\"QualificationWarningEnabled\":true,\"Minimum_points_per_reward_level\":\"20,45,75\",\"Minimum_win_team_reward_level_2\":35,\"Minimum_win_team_reward_level_1\":10,\"Minimum_win_team_reward_level_3\":75},\"LootConfig\":{\"NewPlayerChestEnabled\":true,\"Enabled\":true,\"PurchaseChestsEnabled\":true,\"MinSummonerLevel\":5,\"Visible\":true,\"NoRefundConfirmationEnabled\":false,\"EventChestsEnabled\":false},\"LeagueConfig\":{\"PromoHelperEnabled\":true,\"IsPreseason\":false,\"MasterTierEnabled\":true,\"PreseasonName\":\"2016\",\"SeasonName\":\"2016\"},\"ChampionTradeService\":{\"Enabled\":true},\"ChampionSelect\":{\"UseOptimizedChampSelectProcessor\":false,\"UseOptimizedSpellSelectProcessor\":false,\"AllChampsAvailableInAram\":false,\"UseOptimizedBotChampionSelectProcessor\":false,\"AutoReconnectEnabled\":true,\"CollatorChampionFilterEnabled\":false,\"AlwaysShowRewardIcon\":false},\"FeaturedGame\":{\"MetadataEnabled\":\"OFF\"}}" }; client.InvokeDestReceive("cn-" + targetSummoner._accId, "cn-" + targetSummoner._accId, "messagingDestination", clientConfig); } }
public RemotingMessageReceivedEventArgs HandleMessage(object sender, RemotingMessageReceivedEventArgs e) { SummonerClient summonerSender = sender as SummonerClient; LoginDataPacket packet = new LoginDataPacket { DisplayPrimeReformCard = false, RestrictedGamesRemainingForRanked = -1, PlayerStatSummaries = new PlayerStatSummaries { UserID = Convert.ToInt32(summonerSender._session.Summary.AccountId), //Account ID SummaryList = new ArrayCollection() { new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "AramUnranked5x5", Wins = 9000, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, } } }, new PlayerStatSummary() { Type = "RankedSolo5x5", ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Wins = 9999, Losses = 0, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, }, new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "RankedTeam5x5", Losses = 1337, Wins = 9000, Leaves = 0, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, UserId = Convert.ToInt32(summonerSender._sumId), }, new PlayerStatSummary() { ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), Type = "Unranked", Losses = 1337, Wins = 9000, Leaves = 0, AggregatedStats = new SummaryAggStats { Stats = new RtmpSharp.IO.AMF3.ArrayCollection { new SummaryAggStat { StatType = "totalNeutralMinionsKilled", Value = 1337 }, new SummaryAggStat { StatType = "totalChampionKills", Value = 1337 }, new SummaryAggStat { StatType = "totalAssists", Value = 1337 }, new SummaryAggStat { StatType = "totalTurretsKilled", Value = 1337 }, } }, }, } }, RestrictedChatGamesRemaining = -1, MinutesUntilShutdown = -1, Minor = true, MaxPracticeGameSize = 5, SummonerCatalog = new SummonerCatalog { TalentTree = DatabaseManager.DatabaseManager.TalentTree, SpellBookConfig = DatabaseManager.DatabaseManager.RuneTree, }, IpBalance = Convert.ToInt32(summonerSender._IP), ReconnectInfo = null, Locales = new ArrayCollection { "en_US" }, SimpleMessages = null, AllSummonerData = new AllSummonerData { SpellBook = new SpellBookDTO { SummonerId = summonerSender._sumId, DateString = "Wed Jul 17 23:05:42 PDT 2013", BookPages = new ArrayCollection { new SpellBookPageDTO { Current = true, SummonerId = summonerSender._sumId, PageId = 1.0, CreateDate = DateTime.Now, Name = "Rune Page 1", SlotEntries = new ArrayCollection() }, new SpellBookPageDTO { Current = false, SummonerId = summonerSender._sumId, PageId = 2.0, CreateDate = DateTime.Now, Name = "Rune Page 2", SlotEntries = new ArrayCollection() } } }, SummonerDefaultSpells = new SummonerDefaultSpells() { SummonerId = summonerSender._sumId, SpellDefault1 = new ArrayCollection(), SpellDefault2 = new ArrayCollection() }, SummonerTalentsAndPoints = new SummonerTalentsAndPoints() { TalentPoints = 30, ModifyDate = new DateTime(2016, 08, 11, 12, 00, 00), CreateDate = new DateTime(2016, 08, 11, 12, 00, 00), SummonerId = summonerSender._sumId }, Summoner = new Summoner { InternalName = summonerSender._session.Summary.Username, PreviousSeasonHighestTier = "CHALLENGER", PreviousSeasonHighestTeamReward = 4, AcctId = summonerSender._accId, HelpFlag = false, SumId = summonerSender._sumId, ProfileIconId = Convert.ToInt32(summonerSender._sumIcon), DisplayEloQuestionaire = false, LastGameDate = new DateTime(2016, 08, 11, 12, 00, 00), RevisionDate = new DateTime(2016, 08, 11, 12, 00, 00), AdvancedTutorialFlag = false, RevisionId = 1, Name = summonerSender._summonername, NameChangeFlag = false, TutorialFlag = true, SummonerId = summonerSender._sumId }, SummonerLevel = new SummonerLevel { ExpTierMod = 1.0, SummonerTier = 5.0, InfTierMod = 1.0, ExpToNextLevel = 32651, Level = 30.0 }, SummonerLevelAndPoints = new SummonerLevelAndPoints { InfPoints = 0, ExpPoints = 32651, SummonerId = summonerSender._sumId, SummonerLevel = 30 } }, CustomMinutesLeftToday = 120, CoOpVsAiMinutesLeftToday = 180, BingeData = null, InGhostGame = false, BingePreventionSystemEnabledForClient = false, PendingBadges = 0, BannedUntilDateMillis = 0, BroadcastNotification = null, MinutesUntilMidnight = 0, TimeUntilFirstWinOfDay = 0, CoOpVsAiMsecsUntilReset = -1, ClientHeartBeatEnabled = false, ClientSystemStates = new ClientSystemStatesNotification { Json = "{\"championTradeThroughLCDS\":true,\"playerPreferencesSyncing\":false,\"sendFeedbackEventsEnabled\":false,\"queueThrottleDTO\":{},\"itemSetServiceEnabled\":true,\"socialIntegrationEnabled\":false,\"practiceGameEnabled\":true,\"advancedTutorialEnabled\":true,\"minNumPlayersForPracticeGame\":1,\"practiceGameTypeConfigIdList\":[1,4,6,2],\"freeToPlayChampionIdList\":[19,24,25,96,99,102,105,119,122,131],\"freeToPlayChampionForNewPlayersIdList\":[110,21,86,22,102,63,13,122,55,89],\"freeToPlayChampionsForNewPlayersMaxLevel\":5,\"inactiveChampionIdList\":[],\"gameModeToInactiveSpellIds\":{\"CLASSIC\":[17,31,30],\"ASCENSION\":[9,10,11,12,17,16,20,31,30],\"KINGPORO\":[1,2,3,4,6,7,9,10,11,12,13,14,17,16,21,20],\"ALL_GAME_MODES_DISABLED_SPELLS_KEY\":[9,10,16,20],\"ARAM\":[2,9,10,11,12,17,31,30],\"TUTORIAL\":[17,20,31,30],\"ODIN\":[9,10,11,12,31,30]},\"inactiveSpellIdList\":[9,10,16,20],\"inactiveTutorialSpellIdList\":[17,20,31,30],\"inactiveClassicSpellIdList\":[17,31,30],\"inactiveOdinSpellIdList\":[9,10,11,12,31,30],\"inactiveAramSpellIdList\":[2,9,10,11,12,17,31,30],\"enabledQueueIdsList\":[2,4,31,32,33,42,61,65],\"unobtainableChampionSkinIDList\":[1001,1002,1003,1007,3002,3005,4001,4003,4007,6002,7003,8003,9002,9004,9007,10001,10003,10005,12001,12003,12005,13001,13004,13005,13006,13008,14001,15002,15003,15005,15006,17001,17003,18001,18002,18003,18006,19001,19002,19005,20001,20002,20006,21004,23001,23006,24001,24003,24004,25006,26001,26004,27001,27006,28002,29001,29002,29003,30001,31001,32001,32002,32004,33001,33003,34001,35003,35004,36001,36002,36004,36007,37001,37003,38001,40004,41003,41004,42001,42002,42003,43003,44001,45002,45007,48003,51003,51006,53001,53002,53005,53007,54001,55002,55004,55007,56004,57003,57004,58005,59004,60002,61002,61004,63004,74001,74004,75004,76001,76002,76005,78001,78002,78003,78004,79001,79003,81001,81002,81006,82001,84002,84003,85002,86002,89003,90001,92004,92005,96001,96002,96004,98001,98002,98006,103003,104003,104004,113003,114003,115004,117004,120003,412002],\"archivedStatsEnabled\":true,\"gameMapEnabledDTOList\":[{\"gameMapId\":10,\"minPlayers\":1},{\"gameMapId\":12,\"minPlayers\":1},{\"gameMapId\":11,\"minPlayers\":1},{\"gameMapId\":8,\"minPlayers\":1}],\"storeCustomerEnabled\":true,\"runeUniquePerSpellBook\":false,\"tribunalEnabled\":true,\"observerModeEnabled\":false,\"spectatorSlotLimit\":4,\"clientHeartBeatRateSeconds\":120,\"observableGameModes\":[\"SR_6x6\",\"CAP_5x5\",\"ARAM_UNRANKED_2x2\",\"CAP_1x1\",\"TEAM_BUILDER_DRAFT_UNRANKED_3x3\",\"TT_5x5\",\"RANKED_SOLO_3x3\",\"RANKED_TEAM_3x3\",\"URF\",\"HEXAKILL\",\"TEAM_BUILDER_DRAFT_UNRANKED_5x5\",\"ARAM_UNRANKED_5x5\",\"NORMAL_3x3\",\"TEAM_BUILDER_DRAFT_RANKED_5x5\",\"FEATURED\",\"NORMAL\",\"ONEFORALL_1x1\",\"FIRSTBLOOD_1x1\",\"RANKED_PREMADE_5x5\",\"RANKED_PREMADE_3x3\",\"RANKED_SOLO_5x5\",\"ARAM_UNRANKED_1x1\",\"ARAM_UNRANKED_3x3\",\"COUNTER_PICK\",\"ARAM_UNRANKED_6x6\",\"FIRSTBLOOD_2x2\",\"TEAM_BUILDER_DRAFT_RANKED_3x3\",\"TEAM_BUILDER_DRAFT_UNRANKED_1x1\",\"ODIN_UNRANKED\",\"RANKED_TEAM_5x5\",\"ODIN_RANKED_SOLO\",\"KING_PORO\",\"TEAM_BUILDER_DRAFT_RANKED_1x1\",\"ASCENSION\",\"RANKED_SOLO_1x1\",\"ODIN_RANKED_TEAM\",\"ONEFORALL_5x5\"],\"observableCustomGameModes\":\"ALL\",\"teamServiceEnabled\":true,\"leagueServiceEnabled\":true,\"modularGameModeEnabled\":false,\"riotDataServiceDataSendProbability\":0.2,\"displayPromoGamesPlayedEnabled\":false,\"masteryPageOnServer\":false,\"maxMasteryPagesOnServer\":20,\"tournamentSendStatsEnabled\":false,\"replayServiceAddress\":\"\",\"kudosEnabled\":true,\"buddyNotesEnabled\":true,\"localeSpecificChatRoomsEnabled\":false,\"replaySystemStates\":{\"replayServiceEnabled\":false,\"replayServiceAddress\":\"\",\"endOfGameEnabled\":false,\"matchHistoryEnabled\":true,\"getReplaysTabEnabled\":true,\"backpatchingEnabled\":false},\"sendFeedbackEventsEnabled\":false,\"knownGeographicGameServerRegions\":[\"\"],\"leaguesDecayMessagingEnabled\":true,\"currentSeason\":5}" }, BingeMinutesRemaining = 0, PendingKudosDTO = new PendingKudosDTO { PendingCounts = new ArrayCollection() { 0, 0, 0, 0 } }, LeaverBusterPenaltyTime = 60, PlatformId = "EUW1", EmailStatus = "validated", MatchMakingEnabled = true, MinutesUntilShutdownEnabled = false, RpBalance = summonerSender._RP, ShowEmailVerificationPopup = false, BingeIsPlayerInBingePreventionWindow = false, GameTypeConfigs = new ArrayCollection { new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, PostPickTimerDuration = 0, CrossTeamChampionPool = false, TeamChampionPool = false, Id = 1, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_PICK_BLIND", PickMode = "SimulPickStrategy", MainPickTimerDuration = 93 }, new GameTypeConfigDTO { AllowTrades = true, BanTimerDuration = 38, MaxAllowableBans = 6, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 33, Id = 2, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_DRAFT_STD", PickMode = "DraftModeSinglePickStrategy", MainPickTimerDuration = 43 }, new GameTypeConfigDTO { AllowTrades = true, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 33, Id = 3, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_DRAFT_NOBAN", PickMode = "DraftModeSinglePickStrategy", MainPickTimerDuration = 43 }, new GameTypeConfigDTO { AllowTrades = true, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 70, Id = 4, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_PICK_RANDOM", PickMode = "AllRandomPickStrategy", MainPickTimerDuration = 0 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 13, Id = 5, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_PICK_SIMUL", PickMode = "SimulPickStrategy", MainPickTimerDuration = 93 }, new GameTypeConfigDTO { AllowTrades = true, BanTimerDuration = 33, MaxAllowableBans = 6, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 63, Id = 6, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_DRAFT_TOURNAMENT", PickMode = "DraftModeSinglePickStrategy", MainPickTimerDuration = 63 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 28, MaxAllowableBans = 6, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 43, Id = 7, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_PICK_SIMUL_TD", PickMode = "SimulPickStrategy", MainPickTimerDuration = 53 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 0, Id = 10, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_BASIC_TUTORIAL", PickMode = "SimulPickStrategy", MainPickTimerDuration = 93 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 0, Id = 11, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_ADV_TUTORIAL", PickMode = "SimulPickStrategy", MainPickTimerDuration = 900 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 0, Id = 12, DuplicatePick = false, ExclusivePick = false, Name = "GAME_CFG_CAP", PickMode = "SkipPickStrategy", MainPickTimerDuration = 0 }, new GameTypeConfigDTO { AllowTrades = true, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 70, Id = 13, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_BLIND_RANDOM", PickMode = "AllRandomPickStrategy", MainPickTimerDuration = 0 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 38, MaxAllowableBans = 6, CrossTeamChampionPool = false, TeamChampionPool = true, PostPickTimerDuration = 63, Id = 14, DuplicatePick = true, ExclusivePick = false, Name = "GAME_CFG_BLIND_DUPE", PickMode = "OneTeamVotePickStrategy", MainPickTimerDuration = 43 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 0, MaxAllowableBans = 0, CrossTeamChampionPool = true, TeamChampionPool = false, PostPickTimerDuration = 63, Id = 15, DuplicatePick = true, ExclusivePick = false, Name = "GAME_CFG_CROSS_DUPE", PickMode = "AllTeamVotePickStrategy", MainPickTimerDuration = 43 }, new GameTypeConfigDTO { AllowTrades = false, BanTimerDuration = 28, MaxAllowableBans = 6, CrossTeamChampionPool = false, TeamChampionPool = false, PostPickTimerDuration = 13, Id = 16, DuplicatePick = false, ExclusivePick = true, Name = "GAME_CFG_BLIND_DRAFT_ST", PickMode = "SimulPickStrategy", MainPickTimerDuration = 53 }, }, MinorShutdownEnforced = false, CompetitiveRegion = "EUW", CustomMsecsUntilReset = -1 }; //Console.WriteLine(JsonConvert.SerializeObject(packet.AllSummonerData)); e.ReturnRequired = true; e.Data = packet; return(e); }