hyphenate_SDK4.0 4.8.2
hyphenate java IM SDK
|
Inherits com.hyphenate.chat.EMBase< T >.
Public Member Functions | |
String | getReaction () |
int | getUserCount () |
List< String > | getUserList () |
boolean | isAddedBySelf () |
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.
String com.hyphenate.chat.EMMessageReaction.getReaction | ( | ) |
Gets the Reaction.
int com.hyphenate.chat.EMMessageReaction.getUserCount | ( | ) |
Gets the count of users that added this Reaction.
List< String > com.hyphenate.chat.EMMessageReaction.getUserList | ( | ) |
Gets the list of users that added this Reaction.
Note getReactionDetail(EMChatManager)
can return the entire list of users that added this Reaction with pagination, whereas other methods such as getMessageReaction(EMMessage)
, getReactionList(EMChatManager)
, and onReactionChanged(EMMessageListener)
can only return the first three users.
boolean com.hyphenate.chat.EMMessageReaction.isAddedBySelf | ( | ) |
Gets whether the current user has added the Reaction.
true
: Yes.false
: No.