public final class User
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
User.UpdateReason
Indicates reason for user info update.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose() |
org.json.JSONObject |
getAttributes()
Custom attributes associated with the user info.
|
java.lang.String |
getFriendlyName()
Method that returns the friendlyName of the user info.
|
java.lang.String |
getIdentity()
Returns the identity of the user.
|
boolean |
isNotifiable()
Return user's push reachability.
|
boolean |
isOnline()
Return user's online status, if available.
|
boolean |
isSubscribed()
Check if this user receives real-time status updates.
|
void |
setAttributes(org.json.JSONObject updatedAttributes,
StatusListener listener)
Updates the attribute data for this user info.
|
void |
setFriendlyName(java.lang.String friendlyName,
StatusListener listener)
Updates the friendly name for this user info.
|
void |
unsubscribe()
Unsubscribe from this user, freeing up resources.
|
public java.lang.String getFriendlyName()
public void setFriendlyName(java.lang.String friendlyName, StatusListener listener)
friendlyName
- updated friendly name.listener
- Listener that will receive callback with the result.public org.json.JSONObject getAttributes()
public void setAttributes(org.json.JSONObject updatedAttributes, StatusListener listener)
updatedAttributes
- attributes to change.listener
- Listener that will receive callback with the result.public java.lang.String getIdentity()
public boolean isOnline()
public boolean isNotifiable()
public void unsubscribe()
public boolean isSubscribed()
public void dispose()