hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
|
Inherits com.hyphenate.chat.EMBase< T >.
Public Member Functions | |
String | getChatThreadId () |
String | getChatThreadName () |
String | getOwner () |
String | getParentId () |
String | getMessageId () |
int | getMemberCount () |
int | getMessageCount () |
long | getCreateAt () |
EMMessage | getLastMessage () |
String | toString () |
The message thread object class.
String com.hyphenate.chat.EMChatThread.getChatThreadId | ( | ) |
Gets the message thread ID.
String com.hyphenate.chat.EMChatThread.getChatThreadName | ( | ) |
Gets the message thread name.
long com.hyphenate.chat.EMChatThread.getCreateAt | ( | ) |
Gets the Unix timestamp when the message thread is created. The unit is millisecond.
EMMessage com.hyphenate.chat.EMChatThread.getLastMessage | ( | ) |
Get the last reply in the message thread.
To get the last reply in the message thread, you need to first call EMMessage#getChatThread() to get details of the message thread.
int com.hyphenate.chat.EMChatThread.getMemberCount | ( | ) |
Gets the number of members in the message thread.
To get the member count, you need to first call EMChatThreadManager#getChatThreadFromServer(String, EMValueCallBack) to get details of the message thread.
int com.hyphenate.chat.EMChatThread.getMessageCount | ( | ) |
Get the number of messages in a message thread.
To get the number of messages in a message thread, you need to first call EMMessage#getChatThread() to get details of the message thread.
String com.hyphenate.chat.EMChatThread.getMessageId | ( | ) |
Gets the ID of the parent message.
String com.hyphenate.chat.EMChatThread.getOwner | ( | ) |
Gets the message thread creator.
This message thread creator is returned when you get the message thread details and message thread list.
String com.hyphenate.chat.EMChatThread.getParentId | ( | ) |
Gets the group ID to which the message thread belongs.
String com.hyphenate.chat.EMChatThread.toString | ( | ) |
Gets the message thread name or ID.
This method can be used for adapter sorting.