Package com.cometchat.pro.core
Class UsersRequest
- java.lang.Object
-
- com.cometchat.pro.core.UsersRequest
-
public class UsersRequest extends java.lang.Object
UsersRequest class helps developer to fetch list of users based on different parameters set by developer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsersRequest.UsersRequestBuilder
Builder class to set various parameters to fetch list of Usersstatic interface
UsersRequest.UserStatus
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
USER_STATUS_OFFLINE
static java.lang.String
USER_STATUS_ONLINE
-
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 inUsersRequestBuilder
class The Developer need to call this method repeatedly using the same object of
UsersRequest
class to get paginated list of users
-
-
-
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 inUsersRequestBuilder
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 theCallbackListener<List<User>>
class that helps inform the developer if the operation was successful or any error occurred.
- Since:
- v1
- See Also:
UsersRequest.UsersRequestBuilder
-
-