Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateResult" /> class.
 /// </summary>
 /// <param name="Hdr">Hdr (required).</param>
 /// <param name="Space">Space (required).</param>
 public CreateResult(ResponseHeaderRecord Hdr = null, SpaceRecord Space = null)
 {
     // to ensure "Hdr" is required (not null)
     if (Hdr == null)
     {
         throw new InvalidDataException("Hdr is a required property for CreateResult and cannot be null");
     }
     else
     {
         this.Hdr = Hdr;
     }
     // to ensure "Space" is required (not null)
     if (Space == null)
     {
         throw new InvalidDataException("Space is a required property for CreateResult and cannot be null");
     }
     else
     {
         this.Space = Space;
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CreateInput" /> class.
 /// </summary>
 /// <param name="Inputrecord">Inputrecord (required).</param>
 /// <param name="Option">Option (required).</param>
 public CreateInput(SpaceRecord Inputrecord = null, SpaceCreateOptionsRecord Option = null)
 {
     // to ensure "Inputrecord" is required (not null)
     if (Inputrecord == null)
     {
         throw new InvalidDataException("Inputrecord is a required property for CreateInput and cannot be null");
     }
     else
     {
         this.Inputrecord = Inputrecord;
     }
     // to ensure "Option" is required (not null)
     if (Option == null)
     {
         throw new InvalidDataException("Option is a required property for CreateInput and cannot be null");
     }
     else
     {
         this.Option = Option;
     }
 }