Example #1
0
 public TeamAdvanced(JArray bansA,
                     int baronKills,
                     long?dominionVictoryScore,
                     int dragonKills,
                     bool firstBaron,
                     bool firstBlood,
                     bool firstDragon,
                     bool firstInhibitor,
                     bool firstTower,
                     int inhibitorKills,
                     int teamId,
                     int towerKills,
                     int vilemawKills,
                     bool winner)
 {
     if (bansA != null)
     {
         bans = HelperMethods.LoadBans(bansA);
     }
     this.baronKills           = baronKills;
     this.dominionVictoryScore = dominionVictoryScore;
     this.dragonKills          = dragonKills;
     this.firstBaron           = firstBaron;
     this.firstBlood           = firstBlood;
     this.firstDragon          = firstDragon;
     this.firstInhibitor       = firstInhibitor;
     this.firstTower           = firstTower;
     this.inhibitorKills       = inhibitorKills;
     this.teamId       = teamId;
     this.towerKills   = towerKills;
     this.vilemawKills = vilemawKills;
     this.winner       = winner;
 }
Example #2
0
 /// <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;
 }