/// <summary>
 /// Initializes a new instance of the <see cref="ContactBaseWithStatusFieldsNoTokensSchema" /> class.
 /// </summary>
 /// <param name="_base">_base.</param>
 public ContactBaseWithStatusFieldsNoTokensSchema(ContactBaseWithStatusFieldsNoTokensSchemaBase _base = default(ContactBaseWithStatusFieldsNoTokensSchemaBase))
 {
     this.Base = _base;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UpdateContactsRequest" /> class.
        /// </summary>
        /// <param name="type">Updates the contacts in the whole list (excluding removed contacts) (required).</param>
        /// <param name="contacts">Array of contact IDs to update (required).</param>
        /// <param name="segmentId">Segment ID to update channel field (required).</param>
        /// <param name="_base">_base.</param>
        /// <param name="extra">Array of the contact&#39;s extra fields.</param>
        public UpdateContactsRequest(TypeEnum type = default(TypeEnum), List <string> contacts = default(List <string>), string segmentId = default(string), ContactBaseWithStatusFieldsNoTokensSchemaBase _base = default(ContactBaseWithStatusFieldsNoTokensSchemaBase), List <ContactExtraFields> extra = default(List <ContactExtraFields>))
        {
            // to ensure "type" is required (not null)
            if (type == null)
            {
                throw new InvalidDataException("type is a required property for UpdateContactsRequest and cannot be null");
            }
            else
            {
                this.Type = type;
            }

            // to ensure "contacts" is required (not null)
            if (contacts == null)
            {
                throw new InvalidDataException("contacts is a required property for UpdateContactsRequest and cannot be null");
            }
            else
            {
                this.Contacts = contacts;
            }

            // to ensure "segmentId" is required (not null)
            if (segmentId == null)
            {
                throw new InvalidDataException("segmentId is a required property for UpdateContactsRequest and cannot be null");
            }
            else
            {
                this.SegmentId = segmentId;
            }

            this.Base  = _base;
            this.Extra = extra;
        }