/// <summary>
 /// Initializes a new instance of the <see cref="BlockResult" /> class.
 /// </summary>
 /// <param name="Id">ID of the current Block. (required).</param>
 /// <param name="BroadcastId">Currently assigned Broadcast connected to the current Block, identified by the Broadcast ID. (required).</param>
 /// <param name="Start">Start of the Block (formatted as a DateTime object), saved with an TimeZone. (required).</param>
 /// <param name="Stop">End of the Block (formatted as a DateTime object), saved with an TimeZone. (required).</param>
 /// <param name="CreatedAt">Time of the creation of the Block (formatted as a DateTime object), saved with an TimeZone. (required).</param>
 /// <param name="UpdatedAt">Time of the last update of the Block (formatted as a DateTime object), saved with an TimeZone. (required).</param>
 /// <param name="DeletedAt">Moment when the Block got deleted (formatted as a DateTime object), saved with an TimeZone. (required).</param>
 /// <param name="ExternalStationId">ExternalStationId.</param>
 /// <param name="Items">Items.</param>
 /// <param name="Broadcast">Broadcast.</param>
 /// <param name="Program">Program.</param>
 public BlockResult(long?Id = default(long?), long?BroadcastId = default(long?), DateTime?Start = default(DateTime?), DateTime?Stop = default(DateTime?), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), BlockRelationsItems Items = default(BlockRelationsItems), BlockRelationsBroadcast Broadcast = default(BlockRelationsBroadcast), BlockRelationsProgram Program = default(BlockRelationsProgram))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "BroadcastId" is required (not null)
     if (BroadcastId == null)
     {
         throw new InvalidDataException("BroadcastId is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.BroadcastId = BroadcastId;
     }
     // to ensure "Start" is required (not null)
     if (Start == null)
     {
         throw new InvalidDataException("Start is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.Start = Start;
     }
     // to ensure "Stop" is required (not null)
     if (Stop == null)
     {
         throw new InvalidDataException("Stop is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.Stop = Stop;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     // to ensure "DeletedAt" is required (not null)
     if (DeletedAt == null)
     {
         throw new InvalidDataException("DeletedAt is a required property for BlockResult and cannot be null");
     }
     else
     {
         this.DeletedAt = DeletedAt;
     }
     this.ExternalStationId = ExternalStationId;
     this.Items             = Items;
     this.Broadcast         = Broadcast;
     this.Program           = Program;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BlockRelations" /> class.
 /// </summary>
 /// <param name="Items">Items.</param>
 /// <param name="Broadcast">Broadcast.</param>
 /// <param name="Program">Program.</param>
 public BlockRelations(BlockRelationsItems Items = default(BlockRelationsItems), BlockRelationsBroadcast Broadcast = default(BlockRelationsBroadcast), BlockRelationsProgram Program = default(BlockRelationsProgram))
 {
     this.Items     = Items;
     this.Broadcast = Broadcast;
     this.Program   = Program;
 }