/// <summary> /// Initializes a new instance of the <see cref="GetFwStats200Ok" /> class. /// </summary> /// <param name="FactionId">faction_id integer (required).</param> /// <param name="Kills">Kills.</param> /// <param name="Pilots">How many pilots fight for the given faction (required).</param> /// <param name="SystemsControlled">The number of solar systems controlled by the given faction (required).</param> /// <param name="VictoryPoints">VictoryPoints.</param> public GetFwStats200Ok(int?FactionId = default(int?), GetFwStatsKills Kills = default(GetFwStatsKills), int?Pilots = default(int?), int?SystemsControlled = default(int?), GetFwStatsVictoryPoints VictoryPoints = default(GetFwStatsVictoryPoints)) { // to ensure "FactionId" is required (not null) if (FactionId == null) { throw new InvalidDataException("FactionId is a required property for GetFwStats200Ok and cannot be null"); } else { this.FactionId = FactionId; } // to ensure "Pilots" is required (not null) if (Pilots == null) { throw new InvalidDataException("Pilots is a required property for GetFwStats200Ok and cannot be null"); } else { this.Pilots = Pilots; } // to ensure "SystemsControlled" is required (not null) if (SystemsControlled == null) { throw new InvalidDataException("SystemsControlled is a required property for GetFwStats200Ok and cannot be null"); } else { this.SystemsControlled = SystemsControlled; } this.Kills = Kills; this.VictoryPoints = VictoryPoints; }
/// <summary> /// Initializes a new instance of the <see cref="GetFwStats200Ok" /> class. /// </summary> /// <param name="factionId">faction_id integer (required).</param> /// <param name="pilots">How many pilots fight for the given faction (required).</param> /// <param name="systemsControlled">The number of solar systems controlled by the given faction (required).</param> /// <param name="kills">kills (required).</param> /// <param name="victoryPoints">victoryPoints (required).</param> public GetFwStats200Ok(int?factionId = default(int?), int?pilots = default(int?), int?systemsControlled = default(int?), GetFwStatsKills kills = default(GetFwStatsKills), GetFwStatsVictoryPoints victoryPoints = default(GetFwStatsVictoryPoints)) { // to ensure "factionId" is required (not null) if (factionId == null) { throw new InvalidDataException("factionId is a required property for GetFwStats200Ok and cannot be null"); } else { this.FactionId = factionId; } // to ensure "pilots" is required (not null) if (pilots == null) { throw new InvalidDataException("pilots is a required property for GetFwStats200Ok and cannot be null"); } else { this.Pilots = pilots; } // to ensure "systemsControlled" is required (not null) if (systemsControlled == null) { throw new InvalidDataException("systemsControlled is a required property for GetFwStats200Ok and cannot be null"); } else { this.SystemsControlled = systemsControlled; } // to ensure "kills" is required (not null) if (kills == null) { throw new InvalidDataException("kills is a required property for GetFwStats200Ok and cannot be null"); } else { this.Kills = kills; } // to ensure "victoryPoints" is required (not null) if (victoryPoints == null) { throw new InvalidDataException("victoryPoints is a required property for GetFwStats200Ok and cannot be null"); } else { this.VictoryPoints = victoryPoints; } }