Suggestions

close search

User

public class User



Represents a participant in a conversation.



Summary


Nested classes
Public methods
Constructor User()

Create a User instance.

Constructor User(String userId)

Create a User instance.

String String getUserId()

Return user id.

void void setUserId(String userId)

Set user id.

String String getName()

Return name.

void void setName(String name)

Set name.

String String getAvatarUrl()

Return avatar url.

void void setAvatarUrl(String avatarUrl)

Set avatar url.

Role Role getRole()

Return role.

void void setRole(Role role)

Set role.

String String getEmail()

Return email.

void void setEmail(String email)

Set email.

String String getLocation()

Return location.

void void setLocation(String location)

Set location.

String String getBrowser()

Return browser.

void void setBrowser(String browser)

Set browser.

String String getPlatform()

Return platform.

void void setPlatform(String platform)

Set platform.

String String getDevice()

Return device.

void void setDevice(String device)

Set device.

String String getIpAddress()

Return ip address.

void void setIpAddress(String ipAddress)

Set ip address.

String String getHostName()

Return host name.

void void setHostName(String hostName)

Set host name.

String String getUserAgent()

Return user agent.

void void setUserAgent(String userAgent)

Set user agent.

String String getPhone()

Return phone.

void void setPhone(String phone)

Set phone.

long long getLastMsgSeqReceived()

Return last msg seq received.

void void setLastMsgSeqReceived(long lastMsgSeqReceived)

Set last msg seq received.

long long getLastMsgSeqSeen()

Return last msg seq seen.

void void setLastMsgSeqSeen(long lastMsgSeqSeen)

Set last msg seq seen.

boolean boolean equals(Object object)

Perform equals.



Public methods


User

User()

Create a User instance.



User

User(String userId)

Create a User instance.



getUserId

String getUserId()

Return user id.



setUserId

void setUserId(String userId)

Set user id.



getName

String getName()

Return name.



setName

void setName(String name)

Set name.



getAvatarUrl

String getAvatarUrl()

Return avatar url.



setAvatarUrl

void setAvatarUrl(String avatarUrl)

Set avatar url.



getRole

Role getRole()

Return role.



setRole

void setRole(Role role)

Set role.



getEmail

String getEmail()

Return email.



setEmail

void setEmail(String email)

Set email.



getLocation

String getLocation()

Return location.



setLocation

void setLocation(String location)

Set location.



getBrowser

String getBrowser()

Return browser.



setBrowser

void setBrowser(String browser)

Set browser.



getPlatform

String getPlatform()

Return platform.



setPlatform

void setPlatform(String platform)

Set platform.



getDevice

String getDevice()

Return device.



setDevice

void setDevice(String device)

Set device.



getIpAddress

String getIpAddress()

Return ip address.



setIpAddress

void setIpAddress(String ipAddress)

Set ip address.



getHostName

String getHostName()

Return host name.



setHostName

void setHostName(String hostName)

Set host name.



getUserAgent

String getUserAgent()

Return user agent.



setUserAgent

void setUserAgent(String userAgent)

Set user agent.



getPhone

String getPhone()

Return phone.



setPhone

void setPhone(String phone)

Set phone.



getLastMsgSeqReceived

long getLastMsgSeqReceived()

Return last msg seq received.



setLastMsgSeqReceived

void setLastMsgSeqReceived(long lastMsgSeqReceived)

Set last msg seq received.



getLastMsgSeqSeen

long getLastMsgSeqSeen()

Return last msg seq seen.



setLastMsgSeqSeen

void setLastMsgSeqSeen(long lastMsgSeqSeen)

Set last msg seq seen.



equals

boolean equals(Object object)

Perform equals.



Nested enums


Role

Defines user role values in a conversation.

Enum values
ADMIN

Represents ADMIN.

MEMBER

Represents MEMBER.

getValue

Return value.

getRole

Return role.


ADMIN

User.Role.ADMIN

Represents ADMIN.



MEMBER

User.Role.MEMBER

Represents MEMBER.



getValue

User.Role.getValue

Return value.



getRole

User.Role.getRole

Return role.