Class Reaction
java.lang.Object
com.vonage.client.JsonableBaseObject
com.vonage.client.messages.whatsapp.Reaction
- All Implemented Interfaces:
Jsonable
Represents a MessageType.REACTION message.
- Since:
- 8.11.0
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.vonage.client.JsonableBaseObject
createJsonObjectMapper, equals, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vonage.client.Jsonable
toJson, updateFromJson
-
Constructor Details
-
Reaction
public Reaction()Unreact to a message. -
Reaction
Create a new reaction to a message.- Parameters:
emoji- The reaction emoji to use.
-
-
Method Details
-
getAction
The action to take. IfReaction.Action.REACT, then an emoji must be set.- Returns:
- The action taken as an enum.
-
getEmoji
The emoji used as a reaction.- Returns:
- The emoji as a string, or
nullif not applicable.
-