コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRequestCompoundAllOf" /> class.
 /// </summary>
 /// <param name="objContactinformations">objContactinformations (required).</param>
 public ContactRequestCompoundAllOf(ContactinformationsRequestCompound objContactinformations = default(ContactinformationsRequestCompound))
 {
     // to ensure "objContactinformations" is required (not null)
     if (objContactinformations == null)
     {
         throw new InvalidDataException("objContactinformations is a required property for ContactRequestCompoundAllOf and cannot be null");
     }
     else
     {
         this.ObjContactinformations = objContactinformations;
     }
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRequestCompound" /> class.
 /// </summary>
 /// <param name="objContactinformations">objContactinformations (required).</param>
 /// <param name="fkiContacttitleID">The unique ID of the Contacttitle.  Valid values:  |Value|Description| |-|-| |1|Ms.| |2|Mr.| |4|(Blank)| |5|Me (For Notaries)| (required).</param>
 /// <param name="fkiLanguageID">The unique ID of the Language.  Valid values:  |Value|Description| |-|-| |1|French| |2|English| (required).</param>
 /// <param name="sContactFirstname">The First name of the contact (required).</param>
 /// <param name="sContactLastname">The Last name of the contact (required).</param>
 /// <param name="sContactCompany">The Company name of the contact (required).</param>
 /// <param name="dtContactBirthdate">The Birth Date of the contact.</param>
 public ContactRequestCompound(ContactinformationsRequestCompound objContactinformations = default(ContactinformationsRequestCompound), int fkiContacttitleID = default(int), int fkiLanguageID = default(int), string sContactFirstname = default(string), string sContactLastname = default(string), string sContactCompany = default(string), string dtContactBirthdate = default(string))
 {
     // to ensure "objContactinformations" is required (not null)
     this.ObjContactinformations = objContactinformations ?? throw new ArgumentNullException("objContactinformations is a required property for ContactRequestCompound and cannot be null");
     this.FkiContacttitleID      = fkiContacttitleID;
     this.FkiLanguageID          = fkiLanguageID;
     // to ensure "sContactFirstname" is required (not null)
     this.SContactFirstname = sContactFirstname ?? throw new ArgumentNullException("sContactFirstname is a required property for ContactRequestCompound and cannot be null");
     // to ensure "sContactLastname" is required (not null)
     this.SContactLastname = sContactLastname ?? throw new ArgumentNullException("sContactLastname is a required property for ContactRequestCompound and cannot be null");
     // to ensure "sContactCompany" is required (not null)
     this.SContactCompany    = sContactCompany ?? throw new ArgumentNullException("sContactCompany is a required property for ContactRequestCompound and cannot be null");
     this.DtContactBirthdate = dtContactBirthdate;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ContactRequestCompoundAllOf" /> class.
 /// </summary>
 /// <param name="objContactinformations">objContactinformations (required).</param>
 public ContactRequestCompoundAllOf(ContactinformationsRequestCompound objContactinformations = default(ContactinformationsRequestCompound))
 {
     // to ensure "objContactinformations" is required (not null)
     this.ObjContactinformations = objContactinformations ?? throw new ArgumentNullException("objContactinformations is a required property for ContactRequestCompoundAllOf and cannot be null");
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ContactRequestCompound" /> class.
        /// </summary>
        /// <param name="objContactinformations">objContactinformations (required).</param>
        /// <param name="fkiContacttitleID">The unique ID of the Contacttitle.  Valid values:  |Value|Description| |-|-| |1|Ms.| |2|Mr.| |4|(Blank)| |5|Me (For Notaries)| (required).</param>
        /// <param name="fkiLanguageID">The unique ID of the Language.  Valid values:  |Value|Description| |-|-| |1|French| |2|English| (required).</param>
        /// <param name="sContactFirstname">The First name of the contact (required).</param>
        /// <param name="sContactLastname">The Last name of the contact (required).</param>
        /// <param name="sContactCompany">The Company name of the contact (required).</param>
        /// <param name="dtContactBirthdate">The Birth Date of the contact.</param>
        public ContactRequestCompound(ContactinformationsRequestCompound objContactinformations = default(ContactinformationsRequestCompound), int fkiContacttitleID = default(int), int fkiLanguageID = default(int), string sContactFirstname = default(string), string sContactLastname = default(string), string sContactCompany = default(string), string dtContactBirthdate = default(string))
        {
            // to ensure "objContactinformations" is required (not null)
            if (objContactinformations == null)
            {
                throw new InvalidDataException("objContactinformations is a required property for ContactRequestCompound and cannot be null");
            }
            else
            {
                this.ObjContactinformations = objContactinformations;
            }

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

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

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

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

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

            this.DtContactBirthdate = dtContactBirthdate;
        }