/// <summary> /// Initializes a new instance of the <see cref="CampaignResult" /> 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="Item">Item.</param> /// <param name="ExternalStationId">ExternalStationId.</param> /// <param name="ModelTypeId">ModelTypeId (required).</param> /// <param name="FieldValues">FieldValues.</param> /// <param name="Title">Title.</param> /// <param name="Start">Start (required).</param> /// <param name="Stop">Stop (required).</param> /// <param name="Recommended">Recommended.</param> /// <param name="Description">Description.</param> /// <param name="Items">Items.</param> /// <param name="ModelType">ModelType.</param> public CampaignResult(long?Id = default(long?), DateTime?UpdatedAt = default(DateTime?), DateTime?CreatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), List <Item> Item = default(List <Item>), long?ExternalStationId = default(long?), long?ModelTypeId = default(long?), List <Object> FieldValues = default(List <Object>), string Title = default(string), DateTime?Start = default(DateTime?), DateTime?Stop = default(DateTime?), bool?Recommended = default(bool?), string Description = default(string), CampaignRelationsItems Items = default(CampaignRelationsItems), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for CampaignResult 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 CampaignResult 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 CampaignResult 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 CampaignResult and cannot be null"); } else { this.DeletedAt = DeletedAt; } // to ensure "ModelTypeId" is required (not null) if (ModelTypeId == null) { throw new InvalidDataException("ModelTypeId is a required property for CampaignResult and cannot be null"); } else { this.ModelTypeId = ModelTypeId; } // to ensure "Start" is required (not null) if (Start == null) { throw new InvalidDataException("Start is a required property for CampaignResult 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 CampaignResult and cannot be null"); } else { this.Stop = Stop; } this.Item = Item; this.ExternalStationId = ExternalStationId; this.FieldValues = FieldValues; this.Title = Title; this.Recommended = Recommended; this.Description = Description; this.Items = Items; this.ModelType = ModelType; }
/// <summary> /// Initializes a new instance of the <see cref="CampaignRelations" /> class. /// </summary> /// <param name="Items">Items.</param> /// <param name="ModelType">ModelType.</param> public CampaignRelations(CampaignRelationsItems Items = default(CampaignRelationsItems), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType)) { this.Items = Items; this.ModelType = ModelType; }