Class AddUsersToGroupApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.AddUsersToGroupApiRequest
- All Implemented Interfaces:
VoidExecutableApiRequest
Zulip API request builder for adding users to a group.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAddUsersToGroupApiRequest(ZulipHttpClient client, long groupId, long... userIds) Constructs aAddUsersToGroupApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Executes the Zulip API request for adding users to a group.withAddSubGroups(long... userGroupIds) Sets the list of user group IDs to be added to the user group.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
ADD
- See Also:
-
ADD_SUBGROUPS
- See Also:
-
-
Constructor Details
-
AddUsersToGroupApiRequest
Constructs aAddUsersToGroupApiRequest.- Parameters:
client- The Zulip HTTP clientgroupId- The id of the group to add users touserIds- Array of user ids to add to the group
-
-
Method Details
-
withAddSubGroups
Sets the list of user group IDs to be added to the user group.- Parameters:
userGroupIds- The user group IDs to be added to the user group- Returns:
- This
AddUsersToGroupApiRequestinstance
-
execute
Executes the Zulip API request for adding users to a group.- Specified by:
executein interfaceVoidExecutableApiRequest- Throws:
ZulipClientException- if the request was not successful
-