/// <summary> /// CurrentGameInfo constructor /// </summary> /// <param name="bannedChampionsA"></param> /// <param name="gameId"></param> /// <param name="gameLength"></param> /// <param name="gameMode"></param> /// <param name="gameQueueConfigId"></param> /// <param name="gameStartTime"></param> /// <param name="gameType"></param> /// <param name="mapId"></param> /// <param name="observersO"></param> /// <param name="participantsA"></param> /// <param name="platformId"></param> public CurrentGameInfoLive(JArray bannedChampionsA, long gameId, long gameLength, string gameMode, long gameQueueConfigId, long gameStartTime, string gameType, long mapId, JObject observersO, JArray participantsA, string platformId) { this.bannedChampions = HelperMethods.LoadBans(bannedChampionsA); this.gameId = gameId; this.gameLengthLong = gameLength; this.gameLength = TimeSpan.FromSeconds(gameLength); this.gameModeString = gameMode; this.gameMode = GameConstants.SetGameMode(gameMode); this.gameQueueConfigIdLong = gameQueueConfigId; this.gameQueueConfigId = AdvancedMatchHistoryConstants.SetQueueType(gameQueueConfigId); this.gameStartTimeLong = gameStartTime; this.gameStartTime = CreepScore.EpochToDateTime(gameStartTime); this.gameTypeString = gameType; this.gameType = GameConstants.SetGameType(gameType); this.mapIdLong = mapId; this.mapId = GameConstants.SetMap((int)mapId); this.observers = LoadObservers(observersO); this.participants = LoadParticipants(participantsA); this.platformId = platformId; }
public MatchSummaryAdvanced(long mapId, long matchCreation, long matchDuration, long matchId, string matchMode, string matchType, string matchVersion, JArray participantIdentitiesA, JArray participantsA, string queueType, string region, string season) { this.mapId = mapId; this.matchCreation = matchCreation; this.matchDuration = matchDuration; this.matchId = matchId; this.matchMode = GameConstants.SetGameMode(matchMode); this.matchType = GameConstants.SetGameType(matchType); this.matchVersion = matchVersion; if (participantIdentitiesA != null) { this.participantIdentities = LoadParticipantIdentites(participantIdentitiesA); } if (participantsA != null) { this.participants = LoadParticipants(participantsA); } this.queueType = AdvancedMatchHistoryConstants.SetQueueType(queueType); this.region = region; this.season = AdvancedMatchHistoryConstants.SetSeason(season); }
public MatchDetailAdvanced(long mapId, long matchCreation, long matchDuration, long matchId, string matchMode, string matchType, string matchVersion, JArray participantIdentitiesA, JArray participantsA, string queueType, string region, string season, JArray teamsA, JObject timelineO) { this.mapId = mapId; this.matchCreation = matchCreation; this.matchDuration = matchDuration; this.matchId = matchId; this.matchMode = GameConstants.SetGameMode(matchMode); this.matchType = GameConstants.SetGameType(matchType); this.matchVersion = matchVersion; if (participantIdentitiesA != null) { this.participantIdentities = LoadParticipantIdentites(participantIdentitiesA); } if (participantsA != null) { this.participants = LoadParticipants(participantsA); } this.queueType = AdvancedMatchHistoryConstants.SetQueueType(queueType); this.region = region; this.season = AdvancedMatchHistoryConstants.SetSeason(season); if (teamsA != null) { this.teams = LoadTeams(teamsA); } if (timelineO != null) { this.timeline = LoadTimeline(timelineO); } }