/// <summary> /// Initializes new instance of <see cref="WrikeUserProfile"/> class with accountId, role and external info. /// </summary> /// <param name="accountId">Account ID</param> /// <param name="role">Role in account</param> /// <param name="external">Make user external</param> public WrikeUserProfile(string accountId, WrikeUserRole role, bool external = false) { accountId.ValidateParameter(nameof(accountId)); AccountId = accountId; Role = role; External = external; }
/// <summary> /// Initializes a new instance of the <see cref="WrikeInvitation"/> class with email. /// </summary> /// <param name="email">Create an invitation for email</param> /// <param name="firstName">First name of invited user</param> /// <param name="lastName">Last name of invited user</param> /// <param name="role">Set user role in account</param> /// <param name="external">Set external flag for invited user. Flag 'External' can be applied only to the role 'User'</param> public WrikeInvitation(string email, string firstName = null, string lastName = null, WrikeUserRole role = WrikeUserRole.User, bool external = false) { email.ValidateParameter(nameof(email)); Email = email; FirstName = firstName; LastName = lastName; Role = role; External = external; }