Class DeleteEmojiReactionApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.DeleteEmojiReactionApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
public class DeleteEmojiReactionApiRequest
extends ZulipApiRequest
implements VoidExecutableApiRequest
Zulip API request builder for emoji emoji reactions from a message.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeleteEmojiReactionApiRequest
(ZulipHttpClient client, long messageId, String emojiName) Constructs aDeleteEmojiReactionApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for removing an emoji reaction from 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, putParamAsWrappedObject
-
Field Details
-
EMOJI_CODE
- See Also:
-
EMOJI_NAME
- See Also:
-
REACTION_TYPE
- See Also:
-
-
Constructor Details
-
DeleteEmojiReactionApiRequest
Constructs aDeleteEmojiReactionApiRequest
.- Parameters:
client
- The Zulip HTTP clientmessageId
- The id of the message to remove the emoji reaction fromemojiName
- 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
DeleteEmojiReactionApiRequest
instance - See Also:
-
withReactionType
Sets an optional reaction type.- Parameters:
type
- The emoji reaction type- Returns:
- This
DeleteEmojiReactionApiRequest
instance - See Also:
-
execute
Executes the Zulip API request for removing an emoji reaction from a message.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-