Class: MatrixUser

MatrixUser

new MatrixUser(userId, dataopt)

Construct a Matrix user.
Parameters:
Name Type Attributes Description
userId string The user_id of the user.
data Object <optional>
Serialized data values
Source:

Methods

getDisplayName() → (nullable) {string}

Get the display name for this Matrix user.
Source:
Returns:
The display name.
Type
string

getId() → {string}

Get the matrix user's ID.
Source:
Returns:
The user ID
Type
string

serialize() → {Object}

Serialize all the data about this user, excluding the user ID.
Source:
Returns:
The serialised data
Type
Object

setDisplayName(name)

Set the display name for this Matrix user.
Parameters:
Name Type Description
name string The Matrix display name.
Source: