Package com.cometchat.pro.core
Class MessagesRequest
- java.lang.Object
-
- com.cometchat.pro.core.MessagesRequest
-
public class MessagesRequest extends java.lang.ObjectMessageRequest class helps developer to fetch list of messages based on different parameters set by developer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessagesRequest.MessagesRequestBuilderBuilder class to set various parameters to fetch list of Messages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfetchNext(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)Get list of next message based on the parameters specified inMessagesRequestBuilderclass The Developer need to call this method repeatedly using the same object ofMessagesRequestclass to get paginated list of message.voidfetchPrevious(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)Get list of previous message based on the parameters specified inMessagesRequestBuilderclass.java.lang.StringtoString()
-
-
-
Method Detail
-
fetchPrevious
public void fetchPrevious(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
Get list of previous message based on the parameters specified inMessagesRequestBuilderclass. The Developer need to call this method repeatedly using the same object ofMessagesRequestclass to get paginated list of message.- Parameters:
listener- An object of theCallbackListener<List<BaseMessage>>class that helps inform the developer if the operation was successful or any error occurred.- Since:
- v1
- See Also:
MessagesRequest.MessagesRequestBuilder
-
fetchNext
public void fetchNext(CometChat.CallbackListener<java.util.List<BaseMessage>> listener)
Get list of next message based on the parameters specified inMessagesRequestBuilderclass The Developer need to call this method repeatedly using the same object ofMessagesRequestclass to get paginated list of message.- Parameters:
listener- An object of theCallbackListener<List<BaseMessage>>class that helps inform the developer if the operation was successful or any error occurred.- Since:
- v1
- See Also:
MessagesRequest.MessagesRequestBuilder
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-