Class UpdateUserGroupSubGroupsApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.UpdateUserGroupSubGroupsApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
public class UpdateUserGroupSubGroupsApiRequest
extends ZulipApiRequest
implements VoidExecutableApiRequest
Zulip API request builder for updating user group sub groups.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUpdateUserGroupSubGroupsApiRequest
(ZulipHttpClient client, long userGroupId) Constructs aUpdateUserGroupSubGroupsApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for updating user group sub groups.withAddUserGroups
(List<Long> userGroupIds) The list of user group IDs to be added to the user group.withDeleteUserGroups
(List<Long> userGroupIds) The list of user group IDs to be removed from the user group.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
ADD
- See Also:
-
DELETE
- See Also:
-
-
Constructor Details
-
UpdateUserGroupSubGroupsApiRequest
Constructs aUpdateUserGroupSubGroupsApiRequest
.- Parameters:
client
- The Zulip HTTP clientuserGroupId
- The ID of the user group to update
-
-
Method Details
-
withAddUserGroups
The list of user group IDs to be added to the user group.- Parameters:
userGroupIds
- The list of user group IDs to be added to the user group- Returns:
- This
UpdateUserGroupSubGroupsApiRequest
instance
-
withDeleteUserGroups
The list of user group IDs to be removed from the user group.- Parameters:
userGroupIds
- The list of user group IDs to be removed from the user group- Returns:
- This
UpdateUserGroupSubGroupsApiRequest
instance
-
execute
Executes the Zulip API request for updating user group sub groups.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-