Package com.cometchat.pro.core
Class UsersRequest
- java.lang.Object
-
- com.cometchat.pro.core.UsersRequest
-
public class UsersRequest extends java.lang.ObjectUsersRequest 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 classUsersRequest.UsersRequestBuilderBuilder class to set various parameters to fetch list of Usersstatic interfaceUsersRequest.UserStatus
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringUSER_STATUS_OFFLINEstatic java.lang.StringUSER_STATUS_ONLINE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfetchNext(CometChat.CallbackListener<java.util.List<User>> listener)Get list of next set of users based on the parameters specified inUsersRequestBuilderclass The Developer need to call this method repeatedly using the same object ofUsersRequestclass 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 inUsersRequestBuilderclass The Developer need to call this method repeatedly using the same object ofUsersRequestclass 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
-
-