Class UsersRequest


  • public class UsersRequest
    extends java.lang.Object
    UsersRequest class helps developer to fetch list of users based on different parameters set by developer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void fetchNext​(CometChat.CallbackListener<java.util.List<User>> listener)
      Get list of next set of users based on the parameters specified in UsersRequestBuilder class The Developer need to call this method repeatedly using the same object of UsersRequest class to get paginated list of users
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • USER_STATUS_ONLINE

        public static final java.lang.String USER_STATUS_ONLINE
        See Also:
        Constant Field Values
      • USER_STATUS_OFFLINE

        public static final java.lang.String USER_STATUS_OFFLINE
        See Also:
        Constant Field Values
    • Method Detail

      • fetchNext

        public void fetchNext​(CometChat.CallbackListener<java.util.List<User>> listener)
        Get list of next set of users based on the parameters specified in UsersRequestBuilder class The Developer need to call this method repeatedly using the same object of UsersRequest class to get paginated list of users
        Parameters:
        listener - listener An object of the CallbackListener<List<User>> class that helps inform the developer if the operation was successful or any error occurred.
        Since:
        v1
        See Also:
        UsersRequest.UsersRequestBuilder