Class: User

User


new User()

Class that enables you to retrieve information on the current user and manage its properties.

Class that enables you to retrieve information on the current user and manage its properties. Callers should use MobileBackend's User() property.
Source:

Methods


getEmail()

Returns email address for current user.

Returns email address for current user.
Source:

getFirstName()

Returns first name for current user.

Returns first name for current user.
Source:

getId()

Returns the current user's name.

Returns the current user's name.
Source:
Returns:
Current user's name

getLastName()

Returns last name for current user.

Returns last name for current user.
Source:

getProperties()

Returns the properties of current user.

Returns the properties of current user.
Source:
Returns:
properties of current user

getUsername()

Returns the current user's name.

Returns the current user's name.
Source:
Returns:
Current user's name

setEmail()

Sets the email address property of current user.

Sets the email address property of current user.
Source:
Returns:
email properties of current user

setFirstName(firstname)

Sets first name for current user.

Sets first name for current user.
Parameters:
Name Type Description
firstname Properties associated with current user
Source:

setLastName(lastname)

Sets last name for current user.

Sets last name for current user.
Parameters:
Name Type Description
lastname Properties associated with current user
Source:

setProperties(key, value)

Sets properties for current user.

Sets properties for current user.
Parameters:
Name Type Description
key String the key in the properties object
value String the value of the key in the properties object
Source:

setUsername(username)

Sets username for current user.

Sets username for current user.
Parameters:
Name Type Description
username Properties associated with current user
Source: