Class AddEmojiReactionApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.AddEmojiReactionApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for adding emoji reactions to a message.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddEmojiReactionApiRequest
(ZulipHttpClient client, long messageId, String emojiName) Constructs aAddEmojiReactionApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for adding a emoji reaction to a message.withEmojiCode
(String code) Sets an optional unique identifier defining the specific emoji codepoint requested.withReactionType
(ReactionType type) Sets an optional reaction type.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString
-
Field Details
-
EMOJI_CODE
- See Also:
-
EMOJI_NAME
- See Also:
-
REACTION_TYPE
- See Also:
-
-
Constructor Details
-
AddEmojiReactionApiRequest
Constructs aAddEmojiReactionApiRequest
.- Parameters:
client
- The Zulip HTTP clientmessageId
- The id of the message to add the emoji reaction toemojiName
- The name of the emoji to use
-
-
Method Details
-
withEmojiCode
Sets an optional unique identifier defining the specific emoji codepoint requested. This is usually not required to be specified.- Parameters:
code
- The emoji unique identifier- Returns:
- This
AddEmojiReactionApiRequest
instance - See Also:
-
withReactionType
Sets an optional reaction type.- Parameters:
type
- The emoji reaction type- Returns:
- This
AddEmojiReactionApiRequest
instance - See Also:
-
execute
Executes the Zulip API request for adding a emoji reaction to a message.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-