/// <summary>
 /// Initializes a new instance of the <see cref="PresenterResult" /> 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="ModelTypeId">ModelTypeId (required).</param>
 /// <param name="FieldValues">FieldValues.</param>
 /// <param name="Firstname">Firstname.</param>
 /// <param name="Lastname">Lastname.</param>
 /// <param name="Active">Active.</param>
 /// <param name="Name">Name.</param>
 /// <param name="Programs">Programs.</param>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="ModelType">ModelType.</param>
 public PresenterResult(long?Id = default(long?), DateTime?UpdatedAt = default(DateTime?), DateTime?CreatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), long?ModelTypeId = default(long?), List <Object> FieldValues = default(List <Object>), string Firstname = default(string), string Lastname = default(string), bool?Active = default(bool?), string Name = default(string), PresenterRelationsPrograms Programs = default(PresenterRelationsPrograms), PresenterRelationsBroadcasts Broadcasts = default(PresenterRelationsBroadcasts), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType))
 {
     // to ensure "Id" is required (not null)
     if (Id == null)
     {
         throw new InvalidDataException("Id is a required property for PresenterResult 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 PresenterResult 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 PresenterResult 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 PresenterResult 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 PresenterResult and cannot be null");
     }
     else
     {
         this.ModelTypeId = ModelTypeId;
     }
     this.ExternalStationId = ExternalStationId;
     this.FieldValues       = FieldValues;
     this.Firstname         = Firstname;
     this.Lastname          = Lastname;
     this.Active            = Active;
     this.Name       = Name;
     this.Programs   = Programs;
     this.Broadcasts = Broadcasts;
     this.ModelType  = ModelType;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PresenterRelations" /> class.
 /// </summary>
 /// <param name="Programs">Programs.</param>
 /// <param name="Broadcasts">Broadcasts.</param>
 /// <param name="ModelType">ModelType.</param>
 public PresenterRelations(PresenterRelationsPrograms Programs = default(PresenterRelationsPrograms), PresenterRelationsBroadcasts Broadcasts = default(PresenterRelationsBroadcasts), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType))
 {
     this.Programs   = Programs;
     this.Broadcasts = Broadcasts;
     this.ModelType  = ModelType;
 }