hyphenate_SDK4.0 5.0.0
hyphenate java IM SDK
 
Loading...
Searching...
No Matches
com.hyphenate.chat.EMContact Class Reference

Public Member Functions

 EMContact (String username)
 
void setUsername (String username)
 
String getUsername ()
 
void setRemark (String remark)
 
String getRemark ()
 
EMUserInfo getUserInfo ()
 
long getAddTimestamp ()
 

Protected Attributes

String username
 

Detailed Description

EMContact is the object of contact.

Constructor & Destructor Documentation

◆ EMContact()

com.hyphenate.chat.EMContact.EMContact ( String username)

Creates the EMContact object for the user ID.

Parameters
usernameThe user ID.

Member Function Documentation

◆ getAddTimestamp()

long com.hyphenate.chat.EMContact.getAddTimestamp ( )

Gets the timestamp when the contact was added.

Returns
The timestamp in milliseconds when the contact was added, or 0 if this information is unavailable.

◆ getRemark()

String com.hyphenate.chat.EMContact.getRemark ( )

Gets the remarks of the contact.

Returns
The remarks of the contact.

◆ getUserInfo()

EMUserInfo com.hyphenate.chat.EMContact.getUserInfo ( )

Gets the user attributes of the contact.

Returns
The user attributes of the contact.

◆ getUsername()

String com.hyphenate.chat.EMContact.getUsername ( )

Gets the user ID of the contact.

Returns
The user ID of the contact.

◆ setRemark()

void com.hyphenate.chat.EMContact.setRemark ( String remark)

Sets the remarks of the contact.

Parameters
remarkThe remarks of the contact.

◆ setUsername()

void com.hyphenate.chat.EMContact.setUsername ( String username)
Parameters
usernameThe user ID.

Member Data Documentation

◆ username

String com.hyphenate.chat.EMContact.username
protected

The user ID assigned from the app. It identifies the user and should be unique in the app.


The documentation for this class was generated from the following file: