public final class UserInfo
extends java.lang.Object
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.
|
void |
setAttributes(org.json.JSONObject updatedAttributes,
Constants.StatusListener listener)
Updates the attribute data for this user info.
|
void |
setFriendlyName(java.lang.String friendlyName,
Constants.StatusListener listener)
Updates the friendly name for this user info.
|
public java.lang.String getFriendlyName()
public void setFriendlyName(java.lang.String friendlyName, Constants.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, Constants.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 dispose()