/// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseStargatesStargateIdOk" /> class.
 /// </summary>
 /// <param name="Destination">Destination (required).</param>
 /// <param name="Name">name string (required).</param>
 /// <param name="Position">Position (required).</param>
 /// <param name="StargateId">stargate_id integer (required).</param>
 /// <param name="SystemId">The solar system this stargate is in (required).</param>
 /// <param name="TypeId">type_id integer (required).</param>
 public GetUniverseStargatesStargateIdOk(GetUniverseStargatesStargateIdDestination Destination = default(GetUniverseStargatesStargateIdDestination), string Name = default(string), GetUniverseStargatesStargateIdPosition Position = default(GetUniverseStargatesStargateIdPosition), int?StargateId = default(int?), int?SystemId = default(int?), int?TypeId = default(int?))
 {
     // to ensure "Destination" is required (not null)
     if (Destination == null)
     {
         throw new InvalidDataException("Destination is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Destination = Destination;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "Position" is required (not null)
     if (Position == null)
     {
         throw new InvalidDataException("Position is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Position = Position;
     }
     // to ensure "StargateId" is required (not null)
     if (StargateId == null)
     {
         throw new InvalidDataException("StargateId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.StargateId = StargateId;
     }
     // to ensure "SystemId" is required (not null)
     if (SystemId == null)
     {
         throw new InvalidDataException("SystemId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.SystemId = SystemId;
     }
     // to ensure "TypeId" is required (not null)
     if (TypeId == null)
     {
         throw new InvalidDataException("TypeId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.TypeId = TypeId;
     }
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseStargatesStargateIdOk" /> class.
 /// </summary>
 /// <param name="stargateId">stargate_id integer (required).</param>
 /// <param name="name">name string (required).</param>
 /// <param name="typeId">type_id integer (required).</param>
 /// <param name="position">position (required).</param>
 /// <param name="systemId">The solar system this stargate is in (required).</param>
 /// <param name="destination">destination (required).</param>
 public GetUniverseStargatesStargateIdOk(int?stargateId = default(int?), string name = default(string), int?typeId = default(int?), GetUniverseStargatesStargateIdPosition position = default(GetUniverseStargatesStargateIdPosition), int?systemId = default(int?), GetUniverseStargatesStargateIdDestination destination = default(GetUniverseStargatesStargateIdDestination))
 {
     // to ensure "stargateId" is required (not null)
     if (stargateId == null)
     {
         throw new InvalidDataException("stargateId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.StargateId = stargateId;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "typeId" is required (not null)
     if (typeId == null)
     {
         throw new InvalidDataException("typeId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.TypeId = typeId;
     }
     // to ensure "position" is required (not null)
     if (position == null)
     {
         throw new InvalidDataException("position is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Position = position;
     }
     // to ensure "systemId" is required (not null)
     if (systemId == null)
     {
         throw new InvalidDataException("systemId is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.SystemId = systemId;
     }
     // to ensure "destination" is required (not null)
     if (destination == null)
     {
         throw new InvalidDataException("destination is a required property for GetUniverseStargatesStargateIdOk and cannot be null");
     }
     else
     {
         this.Destination = destination;
     }
 }