Class: User

WTAPI.User(jid, name)

new User(jid, name)

Represents a user that are participated in Wildix PBX.
Parameters:
Name Type Description
jid string
name string
Source:

Methods

getExtension() → {string|null}

Returns an extension of User. Can be null when user doesn't have extension, for example user from MashUp service.
Source:
Returns:
Type
string | null

getId() → {string}

Returns a User temporary id. This identifier is not unique and will be changed between page refresh
Source:
Returns:
Type
string

getJid() → {string}

Returns a JID of User. JID is a unique identity of a user.
Source:
Returns:
Type
string

getName() → {string|null}

Returns a name of User. Can be null when name is not available at that moment. For example it is not possible to know a name of users that are not in roster. If you want to use remote user name, you should request roster before ( WTAPI.RosterPlugin().getRoster(callback) ).
Source:
Returns:
Type
string | null