Class RemoveUsersFromGroupApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.RemoveUsersFromGroupApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
public class RemoveUsersFromGroupApiRequest
extends ZulipApiRequest
implements VoidExecutableApiRequest
Zulip API request builder for removing users from a group.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRemoveUsersFromGroupApiRequest
(ZulipHttpClient client, long groupId, long... userIds) Constructs aRemoveUsersFromGroupApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Executes the Zulip API request for removing users to a group.withDeleteSubGroups
(long... userGroupIds) Sets 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
-
DELETE
- See Also:
-
DELETE_SUBGROUPS
- See Also:
-
-
Constructor Details
-
RemoveUsersFromGroupApiRequest
Constructs aRemoveUsersFromGroupApiRequest
.- Parameters:
client
- The Zulip HTTP clientgroupId
- The id of the group to remove users fromuserIds
- Array of user ids to remove from the group
-
-
Method Details
-
withDeleteSubGroups
Sets the list of user group IDs to be removed from the user group.- Parameters:
userGroupIds
- The user group IDs to be removed from the user group- Returns:
- This
RemoveUsersFromGroupApiRequest
instance
-
execute
Executes the Zulip API request for removing users to a group.- Specified by:
execute
in interfaceVoidExecutableApiRequest
- Throws:
ZulipClientException
- if the request was not successful
-