Class GetSubGroupsOfUserGroupApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.GetSubGroupsOfUserGroupApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<List<Long>>
public class GetSubGroupsOfUserGroupApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<List<Long>>
Get the subgroups of a user group.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGetSubGroupsOfUserGroupApiRequest
(ZulipHttpClient client, long userGroupId) Constructs aGetSubGroupsOfUserGroupApiRequest
. -
Method Summary
Modifier and TypeMethodDescriptionexecute()
Executes the Zulip API request for updating user group sub groups.withDirectSubGroupOnly
(boolean isDirectSubGroupOnly) Sets whether to consider only direct subgroups of the user group or subgroups of subgroups.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Field Details
-
DIRECT_SUBGROUP_ONLY
- See Also:
-
-
Constructor Details
-
GetSubGroupsOfUserGroupApiRequest
Constructs aGetSubGroupsOfUserGroupApiRequest
.- Parameters:
client
- The Zulip HTTP clientuserGroupId
- The ID of the user group
-
-
Method Details
-
withDirectSubGroupOnly
Sets whether to consider only direct subgroups of the user group or subgroups of subgroups.- Parameters:
isDirectSubGroupOnly
- Whether to consider only direct subgroups of the user group or subgroups of subgroups- Returns:
- This
GetSubGroupsOfUserGroupApiRequest
instance
-
execute
Executes the Zulip API request for updating user group sub groups.- Specified by:
execute
in interfaceExecutableApiRequest<List<Long>>
- Returns:
- the list containing the IDs of subgroups for the user group
- Throws:
ZulipClientException
- if the request was not successful
-