Class CreateUserGroupApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.CreateUserGroupApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for creating a user to a group.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreateUserGroupApiRequest(ZulipHttpClient client, String name, String description, long... userIds) Constructs aCreateUserGroupApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the Zulip API request for adding creating a user group.withCanMentionGroup(long groupId) Sets the optional ID of the user group whose members are allowed to mention the new user group.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString
-
Field Details
-
NAME
- See Also:
-
DESCRIPTION
- See Also:
-
MEMBERS
- See Also:
-
CAN_MENTION_GROUP
- See Also:
-
-
Constructor Details
-
CreateUserGroupApiRequest
public CreateUserGroupApiRequest(ZulipHttpClient client, String name, String description, long... userIds) Constructs aCreateUserGroupApiRequest.- Parameters:
client- The Zulip HTTP clientname- The name of the user groupdescription- The user group descriptionuserIds- Array of user ids to add to the group
-
-
Method Details
-
withCanMentionGroup
Sets the optional ID of the user group whose members are allowed to mention the new user group.- Parameters:
groupId- The ID of the user group whose members are allowed to mention the new user group- Returns:
- This
CreateUserGroupApiRequestinstance
-
execute
Executes the Zulip API request for adding creating a user group.- Specified by:
executein interfaceVoidExecutableApiRequest- Throws:
ZulipClientException- if the request was not successful
-