コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="InlineObject3" /> class.
 /// </summary>
 /// <param name="email">email.</param>
 /// <param name="username">username.</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="nickname">nickname.</param>
 /// <param name="locale">locale.</param>
 /// <param name="position">position.</param>
 /// <param name="props">props.</param>
 /// <param name="notifyProps">notifyProps.</param>
 public InlineObject3(string email = default(string), string username = default(string), string firstName = default(string), string lastName = default(string), string nickname = default(string), string locale = default(string), string position = default(string), object props = default(object), UserNotifyProps notifyProps = default(UserNotifyProps))
 {
     this.Email       = email;
     this.Username    = username;
     this.FirstName   = firstName;
     this.LastName    = lastName;
     this.Nickname    = nickname;
     this.Locale      = locale;
     this.Position    = position;
     this.Props       = props;
     this.NotifyProps = notifyProps;
 }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineObject" /> class.
        /// </summary>
        /// <param name="email">email (required).</param>
        /// <param name="username">username (required).</param>
        /// <param name="firstName">firstName.</param>
        /// <param name="lastName">lastName.</param>
        /// <param name="nickname">nickname.</param>
        /// <param name="authData">Service-specific authentication data, such as email address..</param>
        /// <param name="authService">The authentication service, one of \&quot;email\&quot;, \&quot;gitlab\&quot;, \&quot;ldap\&quot;, \&quot;saml\&quot;, \&quot;office365\&quot;, \&quot;google\&quot;, and \&quot;\&quot;..</param>
        /// <param name="password">The password used for email authentication..</param>
        /// <param name="locale">locale.</param>
        /// <param name="props">props.</param>
        /// <param name="notifyProps">notifyProps.</param>
        public InlineObject(string email = default(string), string username = default(string), string firstName = default(string), string lastName = default(string), string nickname = default(string), string authData = default(string), string authService = default(string), string password = default(string), string locale = default(string), object props = default(object), UserNotifyProps notifyProps = default(UserNotifyProps))
        {
            // to ensure "email" is required (not null)
            if (email == null)
            {
                throw new InvalidDataException("email is a required property for InlineObject and cannot be null");
            }
            else
            {
                this.Email = email;
            }

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

            this.FirstName   = firstName;
            this.LastName    = lastName;
            this.Nickname    = nickname;
            this.AuthData    = authData;
            this.AuthService = authService;
            this.Password    = password;
            this.Locale      = locale;
            this.Props       = props;
            this.NotifyProps = notifyProps;
        }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> class.
 /// </summary>
 /// <param name="id">id.</param>
 /// <param name="createAt">The time in milliseconds a user was created.</param>
 /// <param name="updateAt">The time in milliseconds a user was last updated.</param>
 /// <param name="deleteAt">The time in milliseconds a user was deleted.</param>
 /// <param name="username">username.</param>
 /// <param name="firstName">firstName.</param>
 /// <param name="lastName">lastName.</param>
 /// <param name="nickname">nickname.</param>
 /// <param name="email">email.</param>
 /// <param name="emailVerified">emailVerified.</param>
 /// <param name="authService">authService.</param>
 /// <param name="roles">roles.</param>
 /// <param name="locale">locale.</param>
 /// <param name="notifyProps">notifyProps.</param>
 /// <param name="props">props.</param>
 /// <param name="lastPasswordUpdate">lastPasswordUpdate.</param>
 /// <param name="lastPictureUpdate">lastPictureUpdate.</param>
 /// <param name="failedAttempts">failedAttempts.</param>
 /// <param name="mfaActive">mfaActive.</param>
 /// <param name="timezone">timezone.</param>
 /// <param name="termsOfServiceId">ID of accepted terms of service, if any. This field is not present if empty..</param>
 /// <param name="termsOfServiceCreateAt">The time in milliseconds the user accepted the terms of service.</param>
 public User(string id = default(string), long createAt = default(long), long updateAt = default(long), long deleteAt = default(long), string username = default(string), string firstName = default(string), string lastName = default(string), string nickname = default(string), string email = default(string), bool emailVerified = default(bool), string authService = default(string), string roles = default(string), string locale = default(string), UserNotifyProps notifyProps = default(UserNotifyProps), object props = default(object), int lastPasswordUpdate = default(int), int lastPictureUpdate = default(int), int failedAttempts = default(int), bool mfaActive = default(bool), Timezone timezone = default(Timezone), string termsOfServiceId = default(string), long termsOfServiceCreateAt = default(long))
 {
     this.Id                     = id;
     this.CreateAt               = createAt;
     this.UpdateAt               = updateAt;
     this.DeleteAt               = deleteAt;
     this.Username               = username;
     this.FirstName              = firstName;
     this.LastName               = lastName;
     this.Nickname               = nickname;
     this.Email                  = email;
     this.EmailVerified          = emailVerified;
     this.AuthService            = authService;
     this.Roles                  = roles;
     this.Locale                 = locale;
     this.NotifyProps            = notifyProps;
     this.Props                  = props;
     this.LastPasswordUpdate     = lastPasswordUpdate;
     this.LastPictureUpdate      = lastPictureUpdate;
     this.FailedAttempts         = failedAttempts;
     this.MfaActive              = mfaActive;
     this.Timezone               = timezone;
     this.TermsOfServiceId       = termsOfServiceId;
     this.TermsOfServiceCreateAt = termsOfServiceCreateAt;
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineObject2" /> class.
        /// </summary>
        /// <param name="id">id (required).</param>
        /// <param name="email">email.</param>
        /// <param name="username">username.</param>
        /// <param name="firstName">firstName.</param>
        /// <param name="lastName">lastName.</param>
        /// <param name="nickname">nickname.</param>
        /// <param name="locale">locale.</param>
        /// <param name="position">position.</param>
        /// <param name="props">props.</param>
        /// <param name="notifyProps">notifyProps.</param>
        public InlineObject2(string id = default(string), string email = default(string), string username = default(string), string firstName = default(string), string lastName = default(string), string nickname = default(string), string locale = default(string), string position = default(string), object props = default(object), UserNotifyProps notifyProps = default(UserNotifyProps))
        {
            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for InlineObject2 and cannot be null");
            }
            else
            {
                this.Id = id;
            }

            this.Email       = email;
            this.Username    = username;
            this.FirstName   = firstName;
            this.LastName    = lastName;
            this.Nickname    = nickname;
            this.Locale      = locale;
            this.Position    = position;
            this.Props       = props;
            this.NotifyProps = notifyProps;
        }