Class GetMessageApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.GetMessageApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Message>
Zulip API request builder for getting a single message.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetMessageApiRequest
(ZulipHttpClient client, long messageId) Constructs aGetMessageApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Executes the Zulip API request for getting raw content from a message.withApplyMarkdown
(boolean applyMarkdown) Sets whether message content is returned in its raw markdown format.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
APPLY_MARKDOWN
- See Also:
-
-
Constructor Details
-
GetMessageApiRequest
Constructs aGetMessageApiRequest
.- Parameters:
client
- The Zulip HTTP clientmessageId
- The id of the message to get
-
-
Method Details
-
withApplyMarkdown
Sets whether message content is returned in its raw markdown format.- Parameters:
applyMarkdown
- Iftrue
, message content is returned in the rendered HTML format. Iffalse
, message content is returned in the raw Markdown-format text that user entered.- Returns:
- This
GetMessageApiRequest
instance - See Also:
-
execute
Executes the Zulip API request for getting raw content from a message.- Specified by:
execute
in interfaceExecutableApiRequest<Message>
- Returns:
- The message
- Throws:
ZulipClientException
- if the request was not successful
-