Class CreateChannelFolderApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.channel.request.CreateChannelFolderApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Integer>
public class CreateChannelFolderApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Integer>
Zulip API request builder for creating new channel folder.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateChannelFolderApiRequest
(ZulipHttpClient client, String name) Constructs aCreateChannelFolderApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Executes the Zulip API request for creating a channel folder.withDescription
(String description) Sets the description of the channel folder.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
-
Constructor Details
-
CreateChannelFolderApiRequest
Constructs aCreateChannelFolderApiRequest
.- Parameters:
client
- The Zulip HTTP clientname
- The name of the channel folder
-
-
Method Details
-
withDescription
Sets the description of the channel folder.- Parameters:
description
- The description for the channel folder- Returns:
- This
CreateChannelFolderApiRequest
instance - See Also:
-
execute
Executes the Zulip API request for creating a channel folder.- Specified by:
execute
in interfaceExecutableApiRequest<Integer>
- Returns:
- The response for type T
- Throws:
ZulipClientException
- if the request was not successful
-