public class MessagesRequest
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MessagesRequest.MessagesRequestBuilder
Builder class to set various parameters to fetch list of Messages 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
fetchNext(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
Get list of next message based on the parameters specified in  
MessagesRequestBuilder | 
void | 
fetchPrevious(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
Get list of previous message based on the parameters specified in  
MessagesRequestBuilder | 
java.lang.String | 
toString()  | 
public void fetchPrevious(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
MessagesRequestBuilder class.
 The Developer need to call this method repeatedly using the same object of MessagesRequest class to get paginated list of message.listener - An object of the CallbackListener<List<BaseMessage>> class that helps inform the developer if the operation was successful or any error occurred.MessagesRequest.MessagesRequestBuilderpublic void fetchNext(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
MessagesRequestBuilder class
 The Developer need to call this method repeatedly using the same object of MessagesRequest class to get paginated list of message.listener - An object of the CallbackListener<List<BaseMessage>> class that helps inform the developer if the operation was successful or any error occurred.MessagesRequest.MessagesRequestBuilderpublic java.lang.String toString()
toString in class java.lang.Object