예제 #1
0
 /// <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="EliminationAllianceStatus" /> class.
 /// </summary>
 /// <param name="CurrentLevelRecord">CurrentLevelRecord.</param>
 /// <param name="Level">Level.</param>
 /// <param name="PlayoffAverage">PlayoffAverage.</param>
 /// <param name="Record">Record.</param>
 /// <param name="Status">Status.</param>
 public EliminationAllianceStatus(WLTRecord CurrentLevelRecord = default(WLTRecord), string Level = default(string), double?PlayoffAverage = default(double?), WLTRecord Record = default(WLTRecord), string Status = default(string))
 {
     this.CurrentLevelRecord = CurrentLevelRecord;
     this.Level          = Level;
     this.PlayoffAverage = PlayoffAverage;
     this.Record         = Record;
     this.Status         = Status;
 }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EventRankingRankings" /> class.
 /// </summary>
 /// <param name="Dq">Number of times disqualified. (required).</param>
 /// <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="Rank">The team&#39;s rank at the event as provided by FIRST. (required).</param>
 /// <param name="Record">Record (required).</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="TeamKey">The team with this rank. (required).</param>
 public EventRankingRankings(int?Dq = default(int?), int?MatchesPlayed = default(int?), int?QualAverage = default(int?), int?Rank = default(int?), WLTRecord Record = default(WLTRecord), List <decimal?> ExtraStats = default(List <decimal?>), List <decimal?> SortOrders = default(List <decimal?>), string TeamKey = default(string))
 {
     // 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 "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 "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 "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 "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;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TeamEventStatusRankRanking" /> class.
 /// </summary>
 /// <param name="Dq">Number of matches the team was disqualified for..</param>
 /// <param name="MatchesPlayed">Number of matches played..</param>
 /// <param name="QualAverage">For some years, average qualification score. Can be null..</param>
 /// <param name="Rank">Relative rank of this team..</param>
 /// <param name="Record">Record.</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="TeamKey">TBA team key for this rank..</param>
 public TeamEventStatusRankRanking(int?Dq = default(int?), int?MatchesPlayed = default(int?), double?QualAverage = default(double?), int?Rank = default(int?), WLTRecord Record = default(WLTRecord), List <decimal?> SortOrders = default(List <decimal?>), string TeamKey = default(string))
 {
     this.Dq            = Dq;
     this.MatchesPlayed = MatchesPlayed;
     this.QualAverage   = QualAverage;
     this.Rank          = Rank;
     this.Record        = Record;
     this.SortOrders    = SortOrders;
     this.TeamKey       = TeamKey;
 }