public class NexmoUser
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
Represents a unique user in the context of a Nexmo Application.
NexmoUser is entity that represents a simple registered user of a specific
NexmoUser
is invited to the NexmoConversation
or joins the NexmoConversation
it’s
converted to a NexmoMember
of this NexmoConversation
(one-to-one mapping between NexmoMember
and NexmoMember
is created) eg. display the members name in a conversation you need to access the
NexmoUser
first:
nexmoMember.getUser().getName();
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<NexmoUser> |
CREATOR |
Constructor and Description |
---|
NexmoUser(com.nexmo.clientcore.model.user.User user)
Converts
com.nexmo.clientcore.model.user.User to com.nexmo.clientcore.model.user.User instance. |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDisplayName()
Gets display name.
|
java.lang.String |
getId()
Gets the use id.
|
java.lang.String |
getImageUrl()
Gets image URL.
|
java.lang.String |
getName()
Gets the user name.
|
void |
getSessions(java.lang.Integer pageSize,
NexmoPageOrder order,
NexmoRequestListener<NexmoUserSessionsPage> listener)
Gets user sessions.
|
int |
hashCode() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<NexmoUser> CREATOR
public NexmoUser(com.nexmo.clientcore.model.user.User user)
com.nexmo.clientcore.model.user.User
to com.nexmo.clientcore.model.user.User
instance.user
- Client core user instance.public java.lang.String getId()
public java.lang.String getName()
public java.lang.String getDisplayName()
public java.lang.String getImageUrl()
public void getSessions(java.lang.Integer pageSize, NexmoPageOrder order, NexmoRequestListener<NexmoUserSessionsPage> listener)
pageSize
- The size of the page.order
- The sorting order.listener
- The request completion listener.public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object