Class UpdateUserStatusApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.UpdateUserStatusApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for updating user status.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserStatusApiRequest
(ZulipHttpClient client, long userId) Constructs aUpdateUserStatusApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Invokes the HTTP client to send the request to the Zulip REST API.withEmojiCode
(String emojiCode) Sets the unique identifier defining the emoji.withEmojiName
(String emojiName) Sets the name for the emoji to associate with this status.withReactionType
(ReactionType reactionType) Sets the reaction type.withStatusText
(String statusText) Sets the content of the status message.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
STATUS_TEXT
- See Also:
-
EMOJI_NAME
- See Also:
-
EMOJI_CODE
- See Also:
-
REACTION_TYPE
- See Also:
-
-
Constructor Details
-
UpdateUserStatusApiRequest
Constructs aUpdateUserStatusApiRequest
.- Parameters:
client
- The Zulip HTTP client
-
-
Method Details
-
withStatusText
Sets the content of the status message.- Parameters:
statusText
- The content of the status message- Returns:
- This
UpdateUserStatusApiRequest
instance - See Also:
-
withEmojiName
Sets the name for the emoji to associate with this status.- Parameters:
emojiName
- The name for the emoji to associate with this status- Returns:
- This
UpdateUserStatusApiRequest
instance - See Also:
-
withEmojiCode
Sets the unique identifier defining the emoji.- Parameters:
emojiCode
- The unique identifier defining the specific emoji- Returns:
- This
UpdateUserStatusApiRequest
instance - See Also:
-
withReactionType
Sets the reaction type.- Parameters:
reactionType
- The reaction type- Returns:
- This
UpdateUserStatusApiRequest
instance - See Also:
-
execute
Description copied from interface:VoidExecutableApiRequest
Invokes the HTTP client to send the request to the Zulip REST API.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
-