/// <summary> /// League constructor /// </summary> /// <param name="entriesA">JArray of LeagueItem entries</param> /// <param name="name">Name of league</param> /// <param name="queueString">Queue type as a string</param> /// <param name="tierString">Tier type as a string</param> public League(JArray entriesA, string name, string participantId, string queueString, string tierString) { entries = new List<LeagueEntry>(); LoadEntries(entriesA); this.name = name; this.participantId = participantId; this.queueString = queueString; queue = GameConstants.SetQueue(queueString); this.tierString = tierString; tier = GameConstants.SetTier(tierString); }
/// <summary> /// League constructor /// </summary> /// <param name="entriesA">JArray of LeagueItem entries</param> /// <param name="name">Name of league</param> /// <param name="queueString">Queue type as a string</param> /// <param name="tierString">Tier type as a string</param> public League(JArray entriesA, string name, string participantId, string queueString, string tierString) { entries = new List <LeagueEntry>(); if (entriesA != null) { LoadEntries(entriesA); } this.name = name; this.participantId = participantId; this.queueString = queueString; queue = GameConstants.SetQueue(queueString); this.tierString = tierString; tier = GameConstants.SetTier(tierString); }
public ParticipantAdvanced(int championId, string highestAchievedSeasonTier, JArray masteriesA, int participantId, JArray runesA, int spell1Id, int spell2Id, JObject stats, int teamId, JObject timeline) { this.championId = championId; this.highestAchievedSeasonTierString = highestAchievedSeasonTier; if (highestAchievedSeasonTierString != null) { this.highestAchievedSeasonTier = GameConstants.SetTier(highestAchievedSeasonTierString); } if (masteriesA != null) { this.masteries = LoadMasteries(masteriesA); } this.participantId = participantId; if (runesA != null) { this.runes = LoadRunes(runesA); } this.spell1Id = spell1Id; this.spell2Id = spell2Id; if (stats != null) { this.stats = LoadStats(stats); } this.teamId = teamId; if (timeline != null) { this.timeline = LoadTimeline(timeline); } }
public ParticipantAdvanced(int championId, string highestAchievedSeasonTier, JArray masteriesA, int participantId, JArray runesA, int spell1Id, int spell2Id, JObject stats, int teamId, JObject timeline) { this.championId = championId; this.highestAchievedSeasonTierString = highestAchievedSeasonTier; if (highestAchievedSeasonTierString != null) { this.highestAchievedSeasonTier = GameConstants.SetTier(highestAchievedSeasonTierString); } if (masteriesA != null) { this.masteries = LoadMasteries(masteriesA); } this.participantId = participantId; if (runesA != null) { this.runes = LoadRunes(runesA); } this.spell1Id = spell1Id; this.spell2Id = spell2Id; if (stats != null) { this.stats = LoadStats(stats); } this.teamId = teamId; if (timeline != null) { this.timeline = LoadTimeline(timeline); } }