C# Класс Smartsheet.Api.Models.User.UpdateUserBuilder

A convenience class for making a User object with the appropriate fields for updating a user.
Показать файл Открыть проект

Открытые методы

Метод Описание
Build ( ) : User

Builds the User object using the required fields.

GetAdmin ( ) : bool?

Gets the Admin.

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 ) : UpdateUserBuilder

Sets the Admin flag which allows managing Users and accounts.

SetFirstName ( string firstName ) : UpdateUserBuilder

Sets the user's first name.

SetLastName ( string lastName ) : UpdateUserBuilder

Sets the user's last name.

SetLicensedSheetCreator ( bool licensedSheetCreator ) : UpdateUserBuilder

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

SetResourceViewer ( bool resourceViewer ) : UpdateUserBuilder

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

UpdateUserBuilder ( long id, bool admin, bool licensedSheetCreator ) : System

User object containing the required attributes:

Описание методов

Build() публичный Метод

Builds the User object using the required fields.
public Build ( ) : User
Результат User

GetAdmin() публичный Метод

Gets the Admin.
public GetAdmin ( ) : bool?
Результат bool?

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 ) : UpdateUserBuilder
admin bool the Admin
Результат UpdateUserBuilder

SetFirstName() публичный Метод

Sets the user's first name.
public SetFirstName ( string firstName ) : UpdateUserBuilder
firstName string the firstName
Результат UpdateUserBuilder

SetLastName() публичный Метод

Sets the user's last name.
public SetLastName ( string lastName ) : UpdateUserBuilder
lastName string the lastName
Результат UpdateUserBuilder

SetLicensedSheetCreator() публичный Метод

Sets the licensed sheet creator flag that allows creating and owning Sheets.
public SetLicensedSheetCreator ( bool licensedSheetCreator ) : UpdateUserBuilder
licensedSheetCreator bool the licensed sheet creator
Результат UpdateUserBuilder

SetResourceViewer() публичный Метод

Sets the Flag indicating whether the user is a resource viewer (can access resource views)
public SetResourceViewer ( bool resourceViewer ) : UpdateUserBuilder
resourceViewer bool the resourceViewer
Результат UpdateUserBuilder

UpdateUserBuilder() публичный Метод

User object containing the required attributes:
public UpdateUserBuilder ( long id, bool admin, bool licensedSheetCreator ) : System
id long the user id
admin bool admin (required)
licensedSheetCreator bool licensedSheetCreator (required)
Результат System