Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BroadcastRelations" /> class.
 /// </summary>
 /// <param name="Items">Items.</param>
 /// <param name="Blocks">Blocks.</param>
 /// <param name="Program">Program.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="Presenters">Presenters.</param>
 /// <param name="ModelType">ModelType.</param>
 public BroadcastRelations(BroadcastRelationsItems Items = default(BroadcastRelationsItems), BroadcastRelationsBlocks Blocks = default(BroadcastRelationsBlocks), BlockRelationsProgram Program = default(BlockRelationsProgram), BroadcastRelationsTags Tags = default(BroadcastRelationsTags), BroadcastRelationsPresenters Presenters = default(BroadcastRelationsPresenters), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType))
 {
     this.Items      = Items;
     this.Blocks     = Blocks;
     this.Program    = Program;
     this.Tags       = Tags;
     this.Presenters = Presenters;
     this.ModelType  = ModelType;
 }
 /// <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;
 }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BroadcastResult" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="UpdatedAt">UpdatedAt (required).</param>
 /// <param name="CreatedAt">CreatedAt (required).</param>
 /// <param name="DeletedAt">DeletedAt (required).</param>
 /// <param name="ExternalStationId">ExternalStationId.</param>
 /// <param name="ProgramId">ProgramId.</param>
 /// <param name="ModelTypeId">ModelTypeId.</param>
 /// <param name="StationId">StationId.</param>
 /// <param name="FieldValues">FieldValues.</param>
 /// <param name="Title">Title.</param>
 /// <param name="Start">Start.</param>
 /// <param name="Stop">Stop.</param>
 /// <param name="GenreId">GenreId.</param>
 /// <param name="Description">Description.</param>
 /// <param name="ShortName">ShortName.</param>
 /// <param name="MediumName">MediumName.</param>
 /// <param name="Website">Website.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Recommended">Recommended.</param>
 /// <param name="Language">Language.</param>
 /// <param name="Published">Published.</param>
 /// <param name="RepetitionUid">RepetitionUid.</param>
 /// <param name="RepetitionType">RepetitionType.</param>
 /// <param name="RepetitionEnd">RepetitionEnd.</param>
 /// <param name="RepetitionStart">RepetitionStart.</param>
 /// <param name="RepetitionDays">RepetitionDays.</param>
 /// <param name="PtyCodeId">PtyCodeId.</param>
 /// <param name="Items">Items.</param>
 /// <param name="Blocks">Blocks.</param>
 /// <param name="Program">Program.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="Presenters">Presenters.</param>
 /// <param name="ModelType">ModelType.</param>
 public BroadcastResult(long?Id = default(long?), DateTime?UpdatedAt = default(DateTime?), DateTime?CreatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), long?ProgramId = default(long?), long?ModelTypeId = default(long?), long?StationId = default(long?), BroadcastFieldValues FieldValues = default(BroadcastFieldValues), string Title = default(string), DateTime?Start = default(DateTime?), DateTime?Stop = default(DateTime?), long?GenreId = default(long?), string Description = default(string), string ShortName = default(string), string MediumName = default(string), string Website = default(string), string Email = default(string), bool?Recommended = default(bool?), string Language = default(string), bool?Published = default(bool?), string RepetitionUid = default(string), RepetitionTypeEnum?RepetitionType = default(RepetitionTypeEnum?), DateTime?RepetitionEnd = default(DateTime?), DateTime?RepetitionStart = default(DateTime?), List <bool?> RepetitionDays = default(List <bool?>), long?PtyCodeId = default(long?), BroadcastRelationsItems Items = default(BroadcastRelationsItems), BroadcastRelationsBlocks Blocks = default(BroadcastRelationsBlocks), BlockRelationsProgram Program = default(BlockRelationsProgram), BroadcastRelationsTags Tags = default(BroadcastRelationsTags), BroadcastRelationsPresenters Presenters = default(BroadcastRelationsPresenters), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for BroadcastResult and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     // to ensure "UpdatedAt" is required (not null)
     if (UpdatedAt == null)
     {
         throw new InvalidDataException("UpdatedAt is a required property for BroadcastResult and cannot be null");
     }
     else
     {
         this.UpdatedAt = UpdatedAt;
     }
     // to ensure "CreatedAt" is required (not null)
     if (CreatedAt == null)
     {
         throw new InvalidDataException("CreatedAt is a required property for BroadcastResult and cannot be null");
     }
     else
     {
         this.CreatedAt = CreatedAt;
     }
     // to ensure "DeletedAt" is required (not null)
     if (DeletedAt == null)
     {
         throw new InvalidDataException("DeletedAt is a required property for BroadcastResult and cannot be null");
     }
     else
     {
         this.DeletedAt = DeletedAt;
     }
     this.ExternalStationId = ExternalStationId;
     this.ProgramId         = ProgramId;
     this.ModelTypeId       = ModelTypeId;
     this.StationId         = StationId;
     this.FieldValues       = FieldValues;
     this.Title             = Title;
     this.Start             = Start;
     this.Stop            = Stop;
     this.GenreId         = GenreId;
     this.Description     = Description;
     this.ShortName       = ShortName;
     this.MediumName      = MediumName;
     this.Website         = Website;
     this.Email           = Email;
     this.Recommended     = Recommended;
     this.Language        = Language;
     this.Published       = Published;
     this.RepetitionUid   = RepetitionUid;
     this.RepetitionType  = RepetitionType;
     this.RepetitionEnd   = RepetitionEnd;
     this.RepetitionStart = RepetitionStart;
     this.RepetitionDays  = RepetitionDays;
     this.PtyCodeId       = PtyCodeId;
     this.Items           = Items;
     this.Blocks          = Blocks;
     this.Program         = Program;
     this.Tags            = Tags;
     this.Presenters      = Presenters;
     this.ModelType       = ModelType;
 }
Exemple #4
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;
 }