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

Inherits com.hyphenate.chat.EMBase< T >.

Public Member Functions

String getReaction ()
 
int getUserCount ()
 
List< String > getUserList ()
 
boolean isAddedBySelf ()
 

Detailed Description

The message Reaction instance class, which has the following attributes:

Reaction: The message Reaction. UserCount: The count of users that added the Reaction. UserList: The list of users that added the Reaction. isAddedBySelf: Whether the current user added this Reaction.

Member Function Documentation

◆ getReaction()

String com.hyphenate.chat.EMMessageReaction.getReaction ( )

Gets the Reaction.

Returns
The Reaction.

◆ getUserCount()

int com.hyphenate.chat.EMMessageReaction.getUserCount ( )

Gets the count of users that added this Reaction.

Returns
The count of users that added the Reaction.

◆ getUserList()

List< String > com.hyphenate.chat.EMMessageReaction.getUserList ( )

Gets the list of users that added this Reaction.

Note
EMChatManager#getReactionDetail(String, String, String, int) can return the entire list of users that added this Reaction with pagination, whereas other methods such as EMMessage#getMessageReaction(), EMChatManager#getReactionList(List, EMMessage.ChatType, String), and EMMessageListener#onReactionChanged(List) can only return the first three users.
Returns
The list of users that added this Reaction.

◆ isAddedBySelf()

boolean com.hyphenate.chat.EMMessageReaction.isAddedBySelf ( )

Gets whether the current user has added the Reaction.

Returns
Whether the current user has added the Reaction.
  • true: Yes.
  • false: No.

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