/// <summary>
 /// Initializes a new instance of the <see cref="TeamEventStatusPlayoff" /> class.
 /// </summary>
 /// <param name="level">The highest playoff level the team reached..</param>
 /// <param name="currentLevelRecord">currentLevelRecord.</param>
 /// <param name="record">record.</param>
 /// <param name="status">Current competition status for the playoffs..</param>
 /// <param name="playoffAverage">The average match score during playoffs. Year specific. May be null if not relevant for a given year..</param>
 public TeamEventStatusPlayoff(LevelEnum?level = default(LevelEnum?), WLTRecord currentLevelRecord = default(WLTRecord), WLTRecord record = default(WLTRecord), StatusEnum?status = default(StatusEnum?), int playoffAverage = default(int))
 {
     this.Level = level;
     this.CurrentLevelRecord = currentLevelRecord;
     this.Record             = record;
     this.Status             = status;
     this.PlayoffAverage     = playoffAverage;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="EventRankingRankings" /> class.
        /// </summary>
        /// <param name="matchesPlayed">Number of matches played by this team. (required).</param>
        /// <param name="qualAverage">The average match score during qualifications. Year specific. May be null if not relevant for a given year..</param>
        /// <param name="extraStats">Additional special data on the team&#39;s performance calculated by TBA..</param>
        /// <param name="sortOrders">Additional year-specific information, may be null. See parent &#x60;sort_order_info&#x60; for details..</param>
        /// <param name="record">record (required).</param>
        /// <param name="rank">The team&#39;s rank at the event as provided by FIRST. (required).</param>
        /// <param name="dq">Number of times disqualified. (required).</param>
        /// <param name="teamKey">The team with this rank. (required).</param>
        public EventRankingRankings(int matchesPlayed = default(int), int qualAverage = default(int), List <decimal> extraStats = default(List <decimal>), List <decimal> sortOrders = default(List <decimal>), WLTRecord record = default(WLTRecord), int rank = default(int), int dq = default(int), string teamKey = default(string))
        {
            // to ensure "matchesPlayed" is required (not null)
            if (matchesPlayed == null)
            {
                throw new InvalidDataException("matchesPlayed is a required property for EventRankingRankings and cannot be null");
            }
            else
            {
                this.MatchesPlayed = matchesPlayed;
            }

            // to ensure "record" is required (not null)
            if (record == null)
            {
                throw new InvalidDataException("record is a required property for EventRankingRankings and cannot be null");
            }
            else
            {
                this.Record = record;
            }

            // to ensure "rank" is required (not null)
            if (rank == null)
            {
                throw new InvalidDataException("rank is a required property for EventRankingRankings and cannot be null");
            }
            else
            {
                this.Rank = rank;
            }

            // to ensure "dq" is required (not null)
            if (dq == null)
            {
                throw new InvalidDataException("dq is a required property for EventRankingRankings and cannot be null");
            }
            else
            {
                this.Dq = dq;
            }

            // to ensure "teamKey" is required (not null)
            if (teamKey == null)
            {
                throw new InvalidDataException("teamKey is a required property for EventRankingRankings and cannot be null");
            }
            else
            {
                this.TeamKey = teamKey;
            }

            this.QualAverage = qualAverage;
            this.ExtraStats  = extraStats;
            this.SortOrders  = sortOrders;
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamEventStatusRankRanking" /> class.
 /// </summary>
 /// <param name="matchesPlayed">Number of matches played..</param>
 /// <param name="qualAverage">For some years, average qualification score. Can be null..</param>
 /// <param name="sortOrders">Ordered list of values used to determine the rank. See the &#x60;sort_order_info&#x60; property for the name of each value..</param>
 /// <param name="record">record.</param>
 /// <param name="rank">Relative rank of this team..</param>
 /// <param name="dq">Number of matches the team was disqualified for..</param>
 /// <param name="teamKey">TBA team key for this rank..</param>
 public TeamEventStatusRankRanking(int matchesPlayed = default(int), double qualAverage = default(double), List <decimal> sortOrders = default(List <decimal>), WLTRecord record = default(WLTRecord), int rank = default(int), int dq = default(int), string teamKey = default(string))
 {
     this.MatchesPlayed = matchesPlayed;
     this.QualAverage   = qualAverage;
     this.SortOrders    = sortOrders;
     this.Record        = record;
     this.Rank          = rank;
     this.Dq            = dq;
     this.TeamKey       = teamKey;
 }