Class GetUserChannelsApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.GetUserChannelsApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<List<Long>>
public class GetUserChannelsApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<List<Long>>
Zulip API request builder for getting the list of channels a user is subscribed to.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetUserChannelsApiRequest(ZulipHttpClient client, long userId) Constructs aGetUserChannelsApiRequest. -
Method Summary
Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Constructor Details
-
GetUserChannelsApiRequest
Constructs aGetUserChannelsApiRequest.- Parameters:
client- The Zulip HTTP clientuserId- The ID of the user to get channels for
-
-
Method Details
-
execute
Executes the Zulip API request for getting a user's subscribed channels.- Specified by:
executein interfaceExecutableApiRequest<List<Long>>- Returns:
- List of channel IDs the user is subscribed to
- Throws:
ZulipClientException- if the request was not successful
-