Class MarkTopicAsReadApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.message.request.MarkTopicAsReadApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for marking a topic as read.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMarkTopicAsReadApiRequest
(ZulipHttpClient client, long streamId, String topicName) Constructs aMarkTopicAsReadApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for marking a topic as read.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString
-
Field Details
-
STREAM_ID
- See Also:
-
TOPIC_NAME
- See Also:
-
-
Constructor Details
-
MarkTopicAsReadApiRequest
Constructs aMarkTopicAsReadApiRequest
.- Parameters:
client
- The Zulip HTTP clientstreamId
- The id of stream containing the topic to mark as readtopicName
- The name of the topic to mark as read
-
-
Method Details
-
execute
Executes the Zulip API request for marking a topic as read.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-