Class GetStreamTopicsApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.stream.request.GetStreamTopicsApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<List<Topic>>
public class GetStreamTopicsApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<List<Topic>>
Zulip API request builder for getting stream topics.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetStreamTopicsApiRequest
(ZulipHttpClient client, long streamId) Constructs aGetStreamTopicsApiResponse
. -
Method Summary
Modifier and TypeMethodDescriptionallowEmptyTopicName
(boolean allowEmptyTopicName) Sets whether an empty string as a topic name is allowed in the response.execute()
Executes the Zulip API request for getting stream topic.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
ALLOW_EMPTY_TOPIC_NAME
- See Also:
-
-
Constructor Details
-
GetStreamTopicsApiRequest
Constructs aGetStreamTopicsApiResponse
.- Parameters:
client
- The Zulip HTTP clientstreamId
- The id of the stream to get topics from
-
-
Method Details
-
allowEmptyTopicName
Sets whether an empty string as a topic name is allowed in the response.- Parameters:
allowEmptyTopicName
-true
to allow empty topic names.false
to disallow empty topic names;- Returns:
-
execute
Executes the Zulip API request for getting stream topic.- Specified by:
execute
in interfaceExecutableApiRequest<List<Topic>>
- Returns:
- List of
Topic
objects - Throws:
ZulipClientException
- if the request was not successful
-