Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 2
0
 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);
     }
 }