Class GetUserPresenceApiRequest
java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.GetUserPresenceApiRequest
- All Implemented Interfaces:
ExecutableApiRequest<Map<String,UserPresenceDetail>>
public class GetUserPresenceApiRequest
extends ZulipApiRequest
implements ExecutableApiRequest<Map<String,UserPresenceDetail>>
Zulip API request builder for getting user presence information.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionGetUserPresenceApiRequest(ZulipHttpClient client, String email) Constructs aGetUserPresenceApiRequest. -
Method Summary
Modifier and TypeMethodDescriptionexecute()Executes the Zulip API request for getting user presence information.Methods inherited from class com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
client, getParam, getParam, getParams, putParam, putParamAsJsonString, putParamAsWrappedObject
-
Constructor Details
-
GetUserPresenceApiRequest
Constructs aGetUserPresenceApiRequest.- Parameters:
client- The Zulip HTTP clientemail- The email address of the user to get presence details for
-
-
Method Details
-
execute
Executes the Zulip API request for getting user presence information.- Specified by:
executein interfaceExecutableApiRequest<Map<String,UserPresenceDetail>> - Returns:
- Map of user presence details keyed by the source of the client name and containing a
UserPresenceDetailvalue - Throws:
ZulipClientException- if the request was not successful
-