コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseStructuresStructureIdOk" /> class.
 /// </summary>
 /// <param name="Name">The full name of the structure (required).</param>
 /// <param name="Position">Position.</param>
 /// <param name="SolarSystemId">solar_system_id integer (required).</param>
 /// <param name="TypeId">type_id integer.</param>
 public GetUniverseStructuresStructureIdOk(string Name = default(string), GetUniverseStructuresStructureIdPosition Position = default(GetUniverseStructuresStructureIdPosition), int?SolarSystemId = default(int?), int?TypeId = default(int?))
 {
     // to ensure "Name" is required (not null)
     if (Name == null)
     {
         throw new InvalidDataException("Name is a required property for GetUniverseStructuresStructureIdOk and cannot be null");
     }
     else
     {
         this.Name = Name;
     }
     // to ensure "SolarSystemId" is required (not null)
     if (SolarSystemId == null)
     {
         throw new InvalidDataException("SolarSystemId is a required property for GetUniverseStructuresStructureIdOk and cannot be null");
     }
     else
     {
         this.SolarSystemId = SolarSystemId;
     }
     this.Position = Position;
     this.TypeId   = TypeId;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GetUniverseStructuresStructureIdOk" /> class.
 /// </summary>
 /// <param name="name">The full name of the structure (required).</param>
 /// <param name="solarSystemId">solar_system_id integer (required).</param>
 /// <param name="typeId">type_id integer.</param>
 /// <param name="position">position.</param>
 public GetUniverseStructuresStructureIdOk(string name = default(string), int?solarSystemId = default(int?), int?typeId = default(int?), GetUniverseStructuresStructureIdPosition position = default(GetUniverseStructuresStructureIdPosition))
 {
     // to ensure "name" is required (not null)
     if (name == null)
     {
         throw new InvalidDataException("name is a required property for GetUniverseStructuresStructureIdOk and cannot be null");
     }
     else
     {
         this.Name = name;
     }
     // to ensure "solarSystemId" is required (not null)
     if (solarSystemId == null)
     {
         throw new InvalidDataException("solarSystemId is a required property for GetUniverseStructuresStructureIdOk and cannot be null");
     }
     else
     {
         this.SolarSystemId = solarSystemId;
     }
     this.TypeId   = typeId;
     this.Position = position;
 }