C# 클래스 Smartsheet.Api.Models.User.AddUserBuilder

A convenience class for making a User object with the appropriate fields for adding the user.
파일 보기 프로젝트 열기: smartsheet-platform/smartsheet-csharp-sdk

공개 메소드들

메소드 설명
AddUserBuilder ( string email, bool admin, bool licensedSheetCreator ) : System

User object with required attributes

Build ( ) : User

Builds the User object using the required fields.

GetAdmin ( ) : bool?

Gets the Admin.

GetEmailAddress ( ) : string

Gets the Email address.

GetFirstName ( ) : string

Gets the user's first name.

GetLastName ( ) : string

Gets the user's last name.

GetLicensedSheetCreator ( ) : bool?

Gets the licensed sheet creator.

GetResourceViewer ( ) : bool?

Gets the Flag indicating whether the user is a resource viewer (can access resource views).

SetAdmin ( bool admin ) : AddUserBuilder

Sets the Admin flag which allows managing Users and accounts.

SetEmail ( string email ) : AddUserBuilder

Sets the Email for the user.

SetFirstName ( string firstName ) : AddUserBuilder

Sets the user's first name.

SetLastName ( string lastName ) : AddUserBuilder

Sets the user's last name.

SetLicensedSheetCreator ( bool licensedSheetCreator ) : AddUserBuilder

Sets the licensed sheet creator flag that allows creating and owning Sheets.

SetResourceViewer ( bool resourceViewer ) : AddUserBuilder

Sets the Flag indicating whether the user is a resource viewer (can access resource views)

메소드 상세

AddUserBuilder() 공개 메소드

User object with required attributes
public AddUserBuilder ( string email, bool admin, bool licensedSheetCreator ) : System
email string email (required)
admin bool admin (required)
licensedSheetCreator bool licensedSheetCreator (required)
리턴 System

Build() 공개 메소드

Builds the User object using the required fields.
public Build ( ) : User
리턴 User

GetAdmin() 공개 메소드

Gets the Admin.
public GetAdmin ( ) : bool?
리턴 bool?

GetEmailAddress() 공개 메소드

Gets the Email address.
public GetEmailAddress ( ) : string
리턴 string

GetFirstName() 공개 메소드

Gets the user's first name.
public GetFirstName ( ) : string
리턴 string

GetLastName() 공개 메소드

Gets the user's last name.
public GetLastName ( ) : string
리턴 string

GetLicensedSheetCreator() 공개 메소드

Gets the licensed sheet creator.
public GetLicensedSheetCreator ( ) : bool?
리턴 bool?

GetResourceViewer() 공개 메소드

Gets the Flag indicating whether the user is a resource viewer (can access resource views).
public GetResourceViewer ( ) : bool?
리턴 bool?

SetAdmin() 공개 메소드

Sets the Admin flag which allows managing Users and accounts.
public SetAdmin ( bool admin ) : AddUserBuilder
admin bool the Admin
리턴 AddUserBuilder

SetEmail() 공개 메소드

Sets the Email for the user.
public SetEmail ( string email ) : AddUserBuilder
email string the Email
리턴 AddUserBuilder

SetFirstName() 공개 메소드

Sets the user's first name.
public SetFirstName ( string firstName ) : AddUserBuilder
firstName string the firstName
리턴 AddUserBuilder

SetLastName() 공개 메소드

Sets the user's last name.
public SetLastName ( string lastName ) : AddUserBuilder
lastName string the lastName
리턴 AddUserBuilder

SetLicensedSheetCreator() 공개 메소드

Sets the licensed sheet creator flag that allows creating and owning Sheets.
public SetLicensedSheetCreator ( bool licensedSheetCreator ) : AddUserBuilder
licensedSheetCreator bool the licensed sheet creator
리턴 AddUserBuilder

SetResourceViewer() 공개 메소드

Sets the Flag indicating whether the user is a resource viewer (can access resource views)
public SetResourceViewer ( bool resourceViewer ) : AddUserBuilder
resourceViewer bool the resourceViewer
리턴 AddUserBuilder