/// <summary> /// Initializes a new instance of the <see cref="TagRelations" /> class. /// </summary> /// <param name="Broadcasts">Broadcasts.</param> /// <param name="Programs">Programs.</param> /// <param name="Contacts">Contacts.</param> /// <param name="Items">Items.</param> public TagRelations(TagRelationsBroadcasts Broadcasts = default(TagRelationsBroadcasts), TagRelationsPrograms Programs = default(TagRelationsPrograms), TagRelationsContacts Contacts = default(TagRelationsContacts), TagRelationsItems Items = default(TagRelationsItems)) { this.Broadcasts = Broadcasts; this.Programs = Programs; this.Contacts = Contacts; this.Items = Items; }
/// <summary> /// Initializes a new instance of the <see cref="TagResult" /> class. /// </summary> /// <param name="Id">Id (required).</param> /// <param name="CreatedAt">CreatedAt.</param> /// <param name="UpdatedAt">UpdatedAt.</param> /// <param name="DeletedAt">DeletedAt.</param> /// <param name="ExternalStationId">ExternalStationId.</param> /// <param name="Name">Name (required).</param> /// <param name="Broadcasts">Broadcasts.</param> /// <param name="Programs">Programs.</param> /// <param name="Contacts">Contacts.</param> /// <param name="Items">Items.</param> public TagResult(long?Id = default(long?), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), string Name = default(string), TagRelationsBroadcasts Broadcasts = default(TagRelationsBroadcasts), TagRelationsPrograms Programs = default(TagRelationsPrograms), TagRelationsContacts Contacts = default(TagRelationsContacts), TagRelationsItems Items = default(TagRelationsItems)) { // to ensure "Id" is required (not null) if (Id == null) { throw new InvalidDataException("Id is a required property for TagResult and cannot be null"); } else { this.Id = Id; } // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for TagResult and cannot be null"); } else { this.Name = Name; } this.CreatedAt = CreatedAt; this.UpdatedAt = UpdatedAt; this.DeletedAt = DeletedAt; this.ExternalStationId = ExternalStationId; this.Broadcasts = Broadcasts; this.Programs = Programs; this.Contacts = Contacts; this.Items = Items; }