Chat SDK for Android v1.3.1
agora java chat SDK
Public Member Functions | List of all members
io.agora.chat.ChatThread Class Reference

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 ()
 

Detailed Description

The message thread object class.

Member Function Documentation

◆ getChatThreadId()

String io.agora.chat.ChatThread.getChatThreadId ( )

Gets the message thread ID.

Returns
The message thread ID.

◆ getChatThreadName()

String io.agora.chat.ChatThread.getChatThreadName ( )

Gets the message thread name.

Returns
The message thread name.

◆ getCreateAt()

long io.agora.chat.ChatThread.getCreateAt ( )

Gets the Unix timestamp when the message thread is created. The unit is millisecond.

Returns
The Unix timestamp when the message thread is created.

◆ getLastMessage()

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.

Returns
The last reply in the message thread.

◆ getMemberCount()

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.

Returns
The number of members in the message thread.

◆ getMessageCount()

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.

Returns
The message count.

◆ getMessageId()

String io.agora.chat.ChatThread.getMessageId ( )

Gets the ID of the parent message.

Returns
The ID of the parent message.

◆ getOwner()

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.

Returns
The user ID of the message thread creator.

◆ getParentId()

String io.agora.chat.ChatThread.getParentId ( )

Gets the group ID to which the message thread belongs.

Returns
The group ID.

◆ toString()

String io.agora.chat.ChatThread.toString ( )

Gets the message thread name or ID.

This method can be used for adapter sorting.

Returns
The message thread name or ID.

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