/// <summary> /// Initializes a new instance of the <see cref="ItemRelations" /> class. /// </summary> /// <param name="Block">Block.</param> /// <param name="Broadcast">Broadcast.</param> /// <param name="Program">Program.</param> /// <param name="Contacts">Contacts.</param> /// <param name="Tags">Tags.</param> /// <param name="Campaign">Campaign.</param> /// <param name="ModelType">ModelType.</param> public ItemRelations(ItemRelationsBlock Block = default(ItemRelationsBlock), BlockRelationsBroadcast Broadcast = default(BlockRelationsBroadcast), ItemRelationsProgram Program = default(ItemRelationsProgram), ItemRelationsContacts Contacts = default(ItemRelationsContacts), ItemRelationsTags Tags = default(ItemRelationsTags), ItemRelationsCampaign Campaign = default(ItemRelationsCampaign), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { this.Block = Block; this.Broadcast = Broadcast; this.Program = Program; this.Contacts = Contacts; this.Tags = Tags; this.Campaign = Campaign; this.ModelType = ModelType; }
/// <summary> /// Initializes a new instance of the <see cref="ItemResult" /> class. /// </summary> /// <param name="Id">Id.</param> /// <param name="UpdatedAt">UpdatedAt.</param> /// <param name="CreatedAt">CreatedAt.</param> /// <param name="DeletedAt">DeletedAt.</param> /// <param name="DataModified">DataModified.</param> /// <param name="Order">Order.</param> /// <param name="TemplateblockId">TemplateblockId.</param> /// <param name="TemplateitemId">TemplateitemId.</param> /// <param name="ExternalStationId">ExternalStationId.</param> /// <param name="ModelTypeId">ModelTypeId (required).</param> /// <param name="BlockId">BlockId.</param> /// <param name="ExternalId">ExternalId (required).</param> /// <param name="FieldValues">FieldValues.</param> /// <param name="Title">Title.</param> /// <param name="Duration">Duration.</param> /// <param name="Start">Start.</param> /// <param name="Status">Status.</param> /// <param name="Import">Import.</param> /// <param name="CampaignId">CampaignId.</param> /// <param name="Recommended">Recommended.</param> /// <param name="StationDraftId">StationDraftId.</param> /// <param name="ProgramDraftId">ProgramDraftId.</param> /// <param name="UserDraftId">UserDraftId.</param> /// <param name="StaticStart">StaticStart.</param> /// <param name="Details">Details.</param> /// <param name="Block">Block.</param> /// <param name="Broadcast">Broadcast.</param> /// <param name="Program">Program.</param> /// <param name="Contacts">Contacts.</param> /// <param name="Tags">Tags.</param> /// <param name="Campaign">Campaign.</param> /// <param name="ModelType">ModelType.</param> public ItemResult(long?Id = default(long?), DateTime?UpdatedAt = default(DateTime?), DateTime?CreatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?DataModified = default(long?), long?Order = default(long?), long?TemplateblockId = default(long?), long?TemplateitemId = default(long?), long?ExternalStationId = default(long?), long?ModelTypeId = default(long?), long?BlockId = default(long?), long?ExternalId = default(long?), ImportItemFieldValues FieldValues = default(ImportItemFieldValues), string Title = default(string), long?Duration = default(long?), DateTime?Start = default(DateTime?), StatusEnum?Status = default(StatusEnum?), long?Import = default(long?), long?CampaignId = default(long?), bool?Recommended = default(bool?), long?StationDraftId = default(long?), long?ProgramDraftId = default(long?), long?UserDraftId = default(long?), bool?StaticStart = default(bool?), string Details = default(string), ItemRelationsBlock Block = default(ItemRelationsBlock), BlockRelationsBroadcast Broadcast = default(BlockRelationsBroadcast), ItemRelationsProgram Program = default(ItemRelationsProgram), ItemRelationsContacts Contacts = default(ItemRelationsContacts), ItemRelationsTags Tags = default(ItemRelationsTags), ItemRelationsCampaign Campaign = default(ItemRelationsCampaign), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { // to ensure "ModelTypeId" is required (not null) if (ModelTypeId == null) { throw new InvalidDataException("ModelTypeId is a required property for ItemResult and cannot be null"); } else { this.ModelTypeId = ModelTypeId; } // to ensure "ExternalId" is required (not null) if (ExternalId == null) { throw new InvalidDataException("ExternalId is a required property for ItemResult and cannot be null"); } else { this.ExternalId = ExternalId; } this.Id = Id; this.UpdatedAt = UpdatedAt; this.CreatedAt = CreatedAt; this.DeletedAt = DeletedAt; this.DataModified = DataModified; this.Order = Order; this.TemplateblockId = TemplateblockId; this.TemplateitemId = TemplateitemId; this.ExternalStationId = ExternalStationId; this.BlockId = BlockId; this.FieldValues = FieldValues; this.Title = Title; this.Duration = Duration; this.Start = Start; this.Status = Status; this.Import = Import; this.CampaignId = CampaignId; this.Recommended = Recommended; this.StationDraftId = StationDraftId; this.ProgramDraftId = ProgramDraftId; this.UserDraftId = UserDraftId; this.StaticStart = StaticStart; this.Details = Details; this.Block = Block; this.Broadcast = Broadcast; this.Program = Program; this.Contacts = Contacts; this.Tags = Tags; this.Campaign = Campaign; 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; }
/// <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; }