new User(jid, name)
Represents a user that are participated in Wildix PBX.
Parameters:
Name | Type | Description |
---|---|---|
jid |
string | |
name |
string |
Methods
getExtension() → {string|null}
Returns an extension of User. Can be null when user doesn't have extension, for example user from MashUp service.
Returns:
- Type
- string | null
getId() → {string}
Returns a User temporary id.
This identifier is not unique and will be changed between page refresh
Returns:
- Type
- string
getJid() → {string}
Returns a JID of User.
JID is a unique identity of a user.
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) ).
Returns:
- Type
- string | null