Class AddDefaultStreamApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.stream.request.AddDefaultStreamApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for adding a default stream for new users joining the organization.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddDefaultStreamApiRequest
(ZulipHttpClient client, long streamId) Constructs aAddDefaultStreamApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for adding a default stream for new users joining the organization.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
STREAM_ID
- See Also:
-
-
Constructor Details
-
AddDefaultStreamApiRequest
Constructs aAddDefaultStreamApiRequest
.- Parameters:
client
- The Zulip HTTP clientstreamId
- The id of the stream to make a default for new users joining the organization
-
-
Method Details
-
execute
Executes the Zulip API request for adding a default stream for new users joining the organization.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-