EMContact is the object of contact.
◆ EMContact()
| com.hyphenate.chat.EMContact.EMContact |
( |
String | username | ) |
|
Creates the EMContact object for the user ID.
- Parameters
-
◆ 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
-
| remark | The remarks of the contact. |
◆ setUsername()
| void com.hyphenate.chat.EMContact.setUsername |
( |
String | username | ) |
|
◆ 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:
- com/hyphenate/chat/EMContact.java