Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelTypeRelations" /> class.
 /// </summary>
 /// <param name="Campaigns">Campaigns.</param>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="Programs">Programs.</param>
 /// <param name="Contacts">Contacts.</param>
 /// <param name="Presenters">Presenters.</param>
 /// <param name="Items">Items.</param>
 public ModelTypeRelations(ModelTypeRelationsCampaigns Campaigns = default(ModelTypeRelationsCampaigns), ModelTypeRelationsBroadcasts Broadcasts = default(ModelTypeRelationsBroadcasts), ModelTypeRelationsPrograms Programs = default(ModelTypeRelationsPrograms), ModelTypeRelationsContacts Contacts = default(ModelTypeRelationsContacts), ModelTypeRelationsPresenters Presenters = default(ModelTypeRelationsPresenters), ModelTypeRelationsItems Items = default(ModelTypeRelationsItems))
 {
     this.Campaigns  = Campaigns;
     this.Broadcasts = Broadcasts;
     this.Programs   = Programs;
     this.Contacts   = Contacts;
     this.Presenters = Presenters;
     this.Items      = Items;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ModelTypeResult" /> class.
 /// </summary>
 /// <param name="Id">Id (required).</param>
 /// <param name="Name">Name.</param>
 /// <param name="Model">Model.</param>
 /// <param name="CreatedAt">CreatedAt.</param>
 /// <param name="UpdatedAt">UpdatedAt.</param>
 /// <param name="Options">Options.</param>
 /// <param name="Order">Order.</param>
 /// <param name="DeletedAt">DeletedAt.</param>
 /// <param name="Campaigns">Campaigns.</param>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="Programs">Programs.</param>
 /// <param name="Contacts">Contacts.</param>
 /// <param name="Presenters">Presenters.</param>
 /// <param name="Items">Items.</param>
 /// <param name="ExternalStationId">ExternalStationId.</param>
 public ModelTypeResult(long?Id = default(long?), string Name = default(string), ModelEnum?Model = default(ModelEnum?), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), ModelTypeOptions Options = default(ModelTypeOptions), long?Order = default(long?), DateTime?DeletedAt = default(DateTime?), ModelTypeRelationsCampaigns Campaigns = default(ModelTypeRelationsCampaigns), ModelTypeRelationsBroadcasts Broadcasts = default(ModelTypeRelationsBroadcasts), ModelTypeRelationsPrograms Programs = default(ModelTypeRelationsPrograms), ModelTypeRelationsContacts Contacts = default(ModelTypeRelationsContacts), ModelTypeRelationsPresenters Presenters = default(ModelTypeRelationsPresenters), ModelTypeRelationsItems Items = default(ModelTypeRelationsItems), long?ExternalStationId = default(long?))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for ModelTypeResult and cannot be null");
     }
     else
     {
         this.Id = Id;
     }
     this.Name              = Name;
     this.Model             = Model;
     this.CreatedAt         = CreatedAt;
     this.UpdatedAt         = UpdatedAt;
     this.Options           = Options;
     this.Order             = Order;
     this.DeletedAt         = DeletedAt;
     this.Campaigns         = Campaigns;
     this.Broadcasts        = Broadcasts;
     this.Programs          = Programs;
     this.Contacts          = Contacts;
     this.Presenters        = Presenters;
     this.Items             = Items;
     this.ExternalStationId = ExternalStationId;
 }