hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
Public Member Functions | List of all members
com.hyphenate.chat.EMChatThread Class Reference

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

Detailed Description

The message thread object class.

Member Function Documentation

◆ getChatThreadId()

String com.hyphenate.chat.EMChatThread.getChatThreadId ( )

Gets the message thread ID.

Returns
The message thread ID.

◆ getChatThreadName()

String com.hyphenate.chat.EMChatThread.getChatThreadName ( )

Gets the message thread name.

Returns
The message thread name.

◆ getCreateAt()

long com.hyphenate.chat.EMChatThread.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()

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.

Returns
The last reply in the message thread.

◆ getMemberCount()

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.

Returns
The number of members in the message thread.

◆ getMessageCount()

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.

Returns
The message count.

◆ getMessageId()

String com.hyphenate.chat.EMChatThread.getMessageId ( )

Gets the ID of the parent message.

Returns
The ID of the parent message.

◆ getOwner()

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.

Returns
The user ID of the message thread creator.

◆ getParentId()

String com.hyphenate.chat.EMChatThread.getParentId ( )

Gets the group ID to which the message thread belongs.

Returns
The group ID.

◆ toString()

String com.hyphenate.chat.EMChatThread.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: