Class GetAllUsersApiRequest

java.lang.Object
com.github.jamesnetherton.zulip.client.api.core.ZulipApiRequest
com.github.jamesnetherton.zulip.client.api.user.request.GetAllUsersApiRequest
All Implemented Interfaces:
ExecutableApiRequest<List<User>>

public class GetAllUsersApiRequest extends ZulipApiRequest implements ExecutableApiRequest<List<User>>
Zulip API request builder for getting all users.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • withClientGravatar

      public GetAllUsersApiRequest withClientGravatar(boolean gravatar)
      Sets whether to include the user gravatar image URL in the response.
      Parameters:
      gravatar - true to include the gravatar image URL in the response. false to not include the gravatar image URL in the response
      Returns:
      This GetAllUsersApiRequest instance
    • withIncludeCustomProfileFields

      public GetAllUsersApiRequest withIncludeCustomProfileFields(boolean includeCustomProfileFields)
      Sets whether to include the user custom profile fields in the response.
      Parameters:
      includeCustomProfileFields - true to include user custom profile fields in the response. false to not include user custom profile fields in the response
      Returns:
      This GetAllUsersApiRequest instance
    • execute

      public List<User> execute() throws ZulipClientException
      Executes the Zulip API request for getting all users.
      Specified by:
      execute in interface ExecutableApiRequest<List<User>>
      Returns:
      List of User objects
      Throws:
      ZulipClientException - if the request was not successful