/// <summary> /// Initializes a new instance of the <see cref="Zebra" /> class. /// </summary> /// <param name="key">TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may be appended to the competition level if more than one match in required per set. (required).</param> /// <param name="times">A list of relative timestamps for each data point. Each timestamp will correspond to the X and Y value at the same index in a team xs and ys arrays. `times`, all teams `xs` and all teams `ys` are guarenteed to be the same length. (required).</param> /// <param name="alliances">alliances (required).</param> public Zebra(string key = default(string), List <double> times = default(List <double>), ZebraAlliances alliances = default(ZebraAlliances)) { // to ensure "key" is required (not null) this.Key = key ?? throw new ArgumentNullException("key is a required property for Zebra and cannot be null"); // to ensure "times" is required (not null) this.Times = times ?? throw new ArgumentNullException("times is a required property for Zebra and cannot be null"); // to ensure "alliances" is required (not null) this.Alliances = alliances ?? throw new ArgumentNullException("alliances is a required property for Zebra and cannot be null"); }
/// <summary> /// Initializes a new instance of the <see cref="Zebra" /> class. /// </summary> /// <param name="key">TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may be appended to the competition level if more than one match in required per set. (required).</param> /// <param name="times">A list of relative timestamps for each data point. Each timestamp will correspond to the X and Y value at the same index in a team xs and ys arrays. `times`, all teams `xs` and all teams `ys` are guarenteed to be the same length. (required).</param> /// <param name="alliances">alliances (required).</param> public Zebra(string key = default(string), List <double> times = default(List <double>), ZebraAlliances alliances = default(ZebraAlliances)) { // to ensure "key" is required (not null) if (key == null) { throw new InvalidDataException("key is a required property for Zebra and cannot be null"); } else { this.Key = key; } // to ensure "times" is required (not null) if (times == null) { throw new InvalidDataException("times is a required property for Zebra and cannot be null"); } else { this.Times = times; } // to ensure "alliances" is required (not null) if (alliances == null) { throw new InvalidDataException("alliances is a required property for Zebra and cannot be null"); } else { this.Alliances = alliances; } }