Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetKillmailsKillmailIdKillmailHashOk" /> class.
 /// </summary>
 /// <param name="killmailId">ID of the killmail (required).</param>
 /// <param name="killmailTime">Time that the victim was killed and the killmail generated  (required).</param>
 /// <param name="victim">victim (required).</param>
 /// <param name="attackers">attackers array (required).</param>
 /// <param name="solarSystemId">Solar system that the kill took place in  (required).</param>
 /// <param name="moonId">Moon if the kill took place at one.</param>
 /// <param name="warId">War if the killmail is generated in relation to an official war .</param>
 public GetKillmailsKillmailIdKillmailHashOk(int?killmailId = default(int?), DateTime?killmailTime = default(DateTime?), GetKillmailsKillmailIdKillmailHashVictim victim = default(GetKillmailsKillmailIdKillmailHashVictim), List <GetKillmailsKillmailIdKillmailHashAttacker> attackers = default(List <GetKillmailsKillmailIdKillmailHashAttacker>), int?solarSystemId = default(int?), int?moonId = default(int?), int?warId = default(int?))
 {
     // to ensure "killmailId" is required (not null)
     if (killmailId == null)
     {
         throw new InvalidDataException("killmailId is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.KillmailId = killmailId;
     }
     // to ensure "killmailTime" is required (not null)
     if (killmailTime == null)
     {
         throw new InvalidDataException("killmailTime is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.KillmailTime = killmailTime;
     }
     // to ensure "victim" is required (not null)
     if (victim == null)
     {
         throw new InvalidDataException("victim is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.Victim = victim;
     }
     // to ensure "attackers" is required (not null)
     if (attackers == null)
     {
         throw new InvalidDataException("attackers is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.Attackers = attackers;
     }
     // to ensure "solarSystemId" is required (not null)
     if (solarSystemId == null)
     {
         throw new InvalidDataException("solarSystemId is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.SolarSystemId = solarSystemId;
     }
     this.MoonId = moonId;
     this.WarId  = warId;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetKillmailsKillmailIdKillmailHashOk" /> class.
 /// </summary>
 /// <param name="Attackers">attackers array (required).</param>
 /// <param name="KillmailId">ID of the killmail (required).</param>
 /// <param name="KillmailTime">Time that the victim was killed and the killmail generated  (required).</param>
 /// <param name="MoonId">Moon if the kill took place at one.</param>
 /// <param name="SolarSystemId">Solar system that the kill took place in  (required).</param>
 /// <param name="Victim">Victim (required).</param>
 /// <param name="WarId">War if the killmail is generated in relation to an official war .</param>
 public GetKillmailsKillmailIdKillmailHashOk(List <GetKillmailsKillmailIdKillmailHashAttacker> Attackers = default(List <GetKillmailsKillmailIdKillmailHashAttacker>), int?KillmailId = default(int?), DateTime?KillmailTime = default(DateTime?), int?MoonId = default(int?), int?SolarSystemId = default(int?), GetKillmailsKillmailIdKillmailHashVictim Victim = default(GetKillmailsKillmailIdKillmailHashVictim), int?WarId = default(int?))
 {
     // to ensure "Attackers" is required (not null)
     if (Attackers == null)
     {
         throw new InvalidDataException("Attackers is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.Attackers = Attackers;
     }
     // to ensure "KillmailId" is required (not null)
     if (KillmailId == null)
     {
         throw new InvalidDataException("KillmailId is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.KillmailId = KillmailId;
     }
     // to ensure "KillmailTime" is required (not null)
     if (KillmailTime == null)
     {
         throw new InvalidDataException("KillmailTime is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.KillmailTime = KillmailTime;
     }
     // to ensure "SolarSystemId" is required (not null)
     if (SolarSystemId == null)
     {
         throw new InvalidDataException("SolarSystemId is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.SolarSystemId = SolarSystemId;
     }
     // to ensure "Victim" is required (not null)
     if (Victim == null)
     {
         throw new InvalidDataException("Victim is a required property for GetKillmailsKillmailIdKillmailHashOk and cannot be null");
     }
     else
     {
         this.Victim = Victim;
     }
     this.MoonId = MoonId;
     this.WarId  = WarId;
 }