Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdFwStatsOk" /> class.
 /// </summary>
 /// <param name="EnlistedOn">The enlistment date of the given corporation into faction warfare. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="FactionId">The faction the given corporation is enlisted to fight for. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="Kills">Kills (required).</param>
 /// <param name="Pilots">How many pilots the enlisted corporation has. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="VictoryPoints">VictoryPoints (required).</param>
 public GetCorporationsCorporationIdFwStatsOk(DateTime?EnlistedOn = default(DateTime?), int?FactionId = default(int?), GetCorporationsCorporationIdFwStatsKills Kills = default(GetCorporationsCorporationIdFwStatsKills), int?Pilots = default(int?), GetCorporationsCorporationIdFwStatsVictoryPoints VictoryPoints = default(GetCorporationsCorporationIdFwStatsVictoryPoints))
 {
     // to ensure "Kills" is required (not null)
     if (Kills == null)
     {
         throw new InvalidDataException("Kills is a required property for GetCorporationsCorporationIdFwStatsOk 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 GetCorporationsCorporationIdFwStatsOk and cannot be null");
     }
     else
     {
         this.VictoryPoints = VictoryPoints;
     }
     this.EnlistedOn = EnlistedOn;
     this.FactionId  = FactionId;
     this.Pilots     = Pilots;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetCorporationsCorporationIdFwStatsOk" /> class.
 /// </summary>
 /// <param name="factionId">The faction the given corporation is enlisted to fight for. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="enlistedOn">The enlistment date of the given corporation into faction warfare. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="pilots">How many pilots the enlisted corporation has. Will not be included if corporation is not enlisted in faction warfare.</param>
 /// <param name="kills">kills (required).</param>
 /// <param name="victoryPoints">victoryPoints (required).</param>
 public GetCorporationsCorporationIdFwStatsOk(int?factionId = default(int?), DateTime?enlistedOn = default(DateTime?), int?pilots = default(int?), GetCorporationsCorporationIdFwStatsKills kills = default(GetCorporationsCorporationIdFwStatsKills), GetCorporationsCorporationIdFwStatsVictoryPoints victoryPoints = default(GetCorporationsCorporationIdFwStatsVictoryPoints))
 {
     // to ensure "kills" is required (not null)
     if (kills == null)
     {
         throw new InvalidDataException("kills is a required property for GetCorporationsCorporationIdFwStatsOk 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 GetCorporationsCorporationIdFwStatsOk and cannot be null");
     }
     else
     {
         this.VictoryPoints = victoryPoints;
     }
     this.FactionId  = factionId;
     this.EnlistedOn = enlistedOn;
     this.Pilots     = pilots;
 }