Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserResponseAllOf" /> class.
        /// </summary>
        /// <param name="pkiUserID">The unique ID of the User (required).</param>
        /// <param name="fkiLanguageID">The unique ID of the Language.  Valid values:  |Value|Description| |-|-| |1|French| |2|English| (required).</param>
        /// <param name="eUserType">eUserType (required).</param>
        /// <param name="sUserFirstname">The First name of the user (required).</param>
        /// <param name="sUserLastname">The Last name of the user (required).</param>
        /// <param name="sUserLoginname">The Login name of the User. (required).</param>
        /// <param name="objAudit">objAudit (required).</param>
        public UserResponseAllOf(int pkiUserID = default(int), int fkiLanguageID = default(int), FieldEUserType eUserType = default(FieldEUserType), string sUserFirstname = default(string), string sUserLastname = default(string), string sUserLoginname = default(string), CommonAudit objAudit = default(CommonAudit))
        {
            // to ensure "pkiUserID" is required (not null)
            if (pkiUserID == null)
            {
                throw new InvalidDataException("pkiUserID is a required property for UserResponseAllOf and cannot be null");
            }
            else
            {
                this.PkiUserID = pkiUserID;
            }

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

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

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

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

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

            // to ensure "objAudit" is required (not null)
            if (objAudit == null)
            {
                throw new InvalidDataException("objAudit is a required property for UserResponseAllOf and cannot be null");
            }
            else
            {
                this.ObjAudit = objAudit;
            }
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="UserResponseAllOf" /> class.
 /// </summary>
 /// <param name="pkiUserID">The unique ID of the User (required).</param>
 /// <param name="fkiLanguageID">The unique ID of the Language.  Valid values:  |Value|Description| |-|-| |1|French| |2|English| (required).</param>
 /// <param name="eUserType">eUserType (required).</param>
 /// <param name="sUserFirstname">The First name of the user (required).</param>
 /// <param name="sUserLastname">The Last name of the user (required).</param>
 /// <param name="sUserLoginname">The Login name of the User. (required).</param>
 /// <param name="objAudit">objAudit (required).</param>
 public UserResponseAllOf(int pkiUserID = default(int), int fkiLanguageID = default(int), FieldEUserType eUserType = default(FieldEUserType), string sUserFirstname = default(string), string sUserLastname = default(string), string sUserLoginname = default(string), CommonAudit objAudit = default(CommonAudit))
 {
     this.PkiUserID     = pkiUserID;
     this.FkiLanguageID = fkiLanguageID;
     // to ensure "eUserType" is required (not null)
     this.EUserType = eUserType ?? throw new ArgumentNullException("eUserType is a required property for UserResponseAllOf and cannot be null");
     // to ensure "sUserFirstname" is required (not null)
     this.SUserFirstname = sUserFirstname ?? throw new ArgumentNullException("sUserFirstname is a required property for UserResponseAllOf and cannot be null");
     // to ensure "sUserLastname" is required (not null)
     this.SUserLastname = sUserLastname ?? throw new ArgumentNullException("sUserLastname is a required property for UserResponseAllOf and cannot be null");
     // to ensure "sUserLoginname" is required (not null)
     this.SUserLoginname = sUserLoginname ?? throw new ArgumentNullException("sUserLoginname is a required property for UserResponseAllOf and cannot be null");
     // to ensure "objAudit" is required (not null)
     this.ObjAudit = objAudit ?? throw new ArgumentNullException("objAudit is a required property for UserResponseAllOf and cannot be null");
 }