/// <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; }