Singleton used to obtain instances of the User
class while avoiding creating duplicates.
- Source:
Classes
Methods
(static) get(name) → {module:userRegistry.User}
- Source:
Get a user object for a user with the specified name (either a new one or already existing).
Parameters:
Name | Type | Description |
---|---|---|
name |
string |
Returns:
(static) getCurrent() → {module:userRegistry.User}
- Source:
Get a user object for the current user.
Returns:
(static) getUsersByGlobalId(userIds) → {Promise.<Array.<module:userRegistry.User>>}
- Source:
Given a list of user IDs, return a list of users.
Parameters:
Name | Type | Description |
---|---|---|
userIds |
Array.<number> | Array.<string> | List of user IDs. |
Returns:
- Type
- Promise.<Array.<module:userRegistry.User>>
(static) loadMuted()
- Source:
Make an API request and assign the muted status to respective user objects.