Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactDataInput" /> class.
 /// </summary>
 /// <param name="ModelTypeId">ModelTypeId (required).</param>
 /// <param name="FieldValues">FieldValues.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Firstname">Firstname (required).</param>
 /// <param name="Lastname">Lastname (required).</param>
 /// <param name="Phone">Phone.</param>
 public ContactDataInput(long?ModelTypeId = default(long?), ContactFieldValues FieldValues = default(ContactFieldValues), string Email = default(string), string Firstname = default(string), string Lastname = default(string), string Phone = default(string))
 {
     // to ensure "ModelTypeId" is required (not null)
     if (ModelTypeId == null)
     {
         throw new InvalidDataException("ModelTypeId is a required property for ContactDataInput and cannot be null");
     }
     else
     {
         this.ModelTypeId = ModelTypeId;
     }
     // to ensure "Firstname" is required (not null)
     if (Firstname == null)
     {
         throw new InvalidDataException("Firstname is a required property for ContactDataInput and cannot be null");
     }
     else
     {
         this.Firstname = Firstname;
     }
     // to ensure "Lastname" is required (not null)
     if (Lastname == null)
     {
         throw new InvalidDataException("Lastname is a required property for ContactDataInput and cannot be null");
     }
     else
     {
         this.Lastname = Lastname;
     }
     this.FieldValues = FieldValues;
     this.Email       = Email;
     this.Phone       = Phone;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactResult" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="CreatedAt">CreatedAt.</param>
 /// <param name="UpdatedAt">UpdatedAt.</param>
 /// <param name="DeletedAt">DeletedAt.</param>
 /// <param name="ExternalStationId">ExternalStationId.</param>
 /// <param name="ModelTypeId">ModelTypeId (required).</param>
 /// <param name="FieldValues">FieldValues.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Firstname">Firstname (required).</param>
 /// <param name="Lastname">Lastname (required).</param>
 /// <param name="Phone">Phone.</param>
 /// <param name="Tags">Tags.</param>
 /// <param name="Items">Items.</param>
 /// <param name="ModelType">ModelType.</param>
 public ContactResult(long?Id = default(long?), DateTime?CreatedAt = default(DateTime?), DateTime?UpdatedAt = default(DateTime?), DateTime?DeletedAt = default(DateTime?), long?ExternalStationId = default(long?), long?ModelTypeId = default(long?), ContactFieldValues FieldValues = default(ContactFieldValues), string Email = default(string), string Firstname = default(string), string Lastname = default(string), string Phone = default(string), ContactRelationsTags Tags = default(ContactRelationsTags), ContactRelationsItems Items = default(ContactRelationsItems), BroadcastRelationsModelType ModelType = default(BroadcastRelationsModelType))
 {
     // to ensure "ModelTypeId" is required (not null)
     if (ModelTypeId == null)
     {
         throw new InvalidDataException("ModelTypeId is a required property for ContactResult and cannot be null");
     }
     else
     {
         this.ModelTypeId = ModelTypeId;
     }
     // to ensure "Firstname" is required (not null)
     if (Firstname == null)
     {
         throw new InvalidDataException("Firstname is a required property for ContactResult and cannot be null");
     }
     else
     {
         this.Firstname = Firstname;
     }
     // to ensure "Lastname" is required (not null)
     if (Lastname == null)
     {
         throw new InvalidDataException("Lastname is a required property for ContactResult and cannot be null");
     }
     else
     {
         this.Lastname = Lastname;
     }
     this.Id                = Id;
     this.CreatedAt         = CreatedAt;
     this.UpdatedAt         = UpdatedAt;
     this.DeletedAt         = DeletedAt;
     this.ExternalStationId = ExternalStationId;
     this.FieldValues       = FieldValues;
     this.Email             = Email;
     this.Phone             = Phone;
     this.Tags              = Tags;
     this.Items             = Items;
     this.ModelType         = ModelType;
 }