Class GetStreamApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.stream.request.GetStreamApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Stream>
Zulip API request builder for getting a stream by id.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetStreamApiRequest
(ZulipHttpClient client, long streamId) Constructs aGetStreamApiRequest
. -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString
-
Constructor Details
-
GetStreamApiRequest
Constructs aGetStreamApiRequest
.- Parameters:
client
- The Zulip HTTP clientstreamId
- The id of the stream to get
-
-
Method Details
-
execute
Executes the Zulip API request for getting a stream by id.- Specified by:
execute
in interfaceExecutableApiRequest<Stream>
- Returns:
- The stream matching the provided stream id
- Throws:
ZulipClientException
- if the request was not successful
-