Chat SDK for Android v1.2.1
agora java chat SDK
|
Inherits io.agora.chat.EMBase< T >.
Public Member Functions | |
String | getChatThreadId () |
String | getChatThreadName () |
String | getOwner () |
String | getParentId () |
String | getMessageId () |
int | getMemberCount () |
int | getMessageCount () |
long | getCreateAt () |
ChatMessage | getLastMessage () |
String | toString () |
The message thread object class.
String io.agora.chat.ChatThread.getChatThreadId | ( | ) |
Gets the message thread ID.
String io.agora.chat.ChatThread.getChatThreadName | ( | ) |
Gets the message thread name.
long io.agora.chat.ChatThread.getCreateAt | ( | ) |
Gets the Unix timestamp when the message thread is created. The unit is millisecond.
ChatMessage io.agora.chat.ChatThread.getLastMessage | ( | ) |
Get the last reply in the message thread.
To get the last reply in the message thread, you need to first call ChatMessage#getChatThread() to get details of the message thread.
int io.agora.chat.ChatThread.getMemberCount | ( | ) |
Gets the number of members in the message thread.
To get the member count, you need to first call ChatThreadManager#getChatThreadFromServer(String, ValueCallBack) to get details of the message thread.
int io.agora.chat.ChatThread.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 ChatMessage#getChatThread() to get details of the message thread.
String io.agora.chat.ChatThread.getMessageId | ( | ) |
Gets the ID of the parent message.
String io.agora.chat.ChatThread.getOwner | ( | ) |
Gets the message thread creator.
This message thread creator is returned when you get the message thread details and message thread list.
String io.agora.chat.ChatThread.getParentId | ( | ) |
Gets the group ID to which the message thread belongs.
String io.agora.chat.ChatThread.toString | ( | ) |
Gets the message thread name or ID.
This method can be used for adapter sorting.