示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseConstellationsConstellationIdOk" /> class.
 /// </summary>
 /// <param name="ConstellationId">constellation_id integer (required).</param>
 /// <param name="Name">name string (required).</param>
 /// <param name="Position">Position (required).</param>
 /// <param name="RegionId">The region this constellation is in (required).</param>
 /// <param name="Systems">systems array (required).</param>
 public GetUniverseConstellationsConstellationIdOk(int?ConstellationId = default(int?), string Name = default(string), GetUniverseConstellationsConstellationIdPosition Position = default(GetUniverseConstellationsConstellationIdPosition), int?RegionId = default(int?), List <int?> Systems = default(List <int?>))
 {
     // to ensure "ConstellationId" is required (not null)
     if (ConstellationId == null)
     {
         throw new InvalidDataException("ConstellationId is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.ConstellationId = ConstellationId;
     }
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for GetUniverseConstellationsConstellationIdOk 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 GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.Position = Position;
     }
     // to ensure "RegionId" is required (not null)
     if (RegionId == null)
     {
         throw new InvalidDataException("RegionId is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.RegionId = RegionId;
     }
     // to ensure "Systems" is required (not null)
     if (Systems == null)
     {
         throw new InvalidDataException("Systems is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.Systems = Systems;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseConstellationsConstellationIdOk" /> class.
 /// </summary>
 /// <param name="constellationId">constellation_id integer (required).</param>
 /// <param name="name">name string (required).</param>
 /// <param name="position">position (required).</param>
 /// <param name="regionId">The region this constellation is in (required).</param>
 /// <param name="systems">systems array (required).</param>
 public GetUniverseConstellationsConstellationIdOk(int?constellationId = default(int?), string name = default(string), GetUniverseConstellationsConstellationIdPosition position = default(GetUniverseConstellationsConstellationIdPosition), int?regionId = default(int?), List <int?> systems = default(List <int?>))
 {
     // to ensure "constellationId" is required (not null)
     if (constellationId == null)
     {
         throw new InvalidDataException("constellationId is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.ConstellationId = constellationId;
     }
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for GetUniverseConstellationsConstellationIdOk 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 GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.Position = position;
     }
     // to ensure "regionId" is required (not null)
     if (regionId == null)
     {
         throw new InvalidDataException("regionId is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.RegionId = regionId;
     }
     // to ensure "systems" is required (not null)
     if (systems == null)
     {
         throw new InvalidDataException("systems is a required property for GetUniverseConstellationsConstellationIdOk and cannot be null");
     }
     else
     {
         this.Systems = systems;
     }
 }