Public Member Functions | |
| EMFetchMessageOption () | |
| void | setIsSave (boolean save) |
| void | setDirection (EMConversation.EMSearchDirection direction) |
| void | setFrom (String from) |
| void | setFromIds (List< String > fromIds) |
| void | setMsgTypes (List< EMMessage.Type > msgTypes) |
| void | setStartTime (long startTime) |
| void | setEndTime (long endTime) |
The parameter configuration class for pulling historical messages from the server.
| com.hyphenate.chat.EMFetchMessageOption.EMFetchMessageOption | ( | ) |
The constructor.
| void com.hyphenate.chat.EMFetchMessageOption.setDirection | ( | EMConversation.EMSearchDirection | direction | ) |
Sets the message search direction.
| direction | The message search direction. See EMConversation.EMSearchDirection.
|
| void com.hyphenate.chat.EMFetchMessageOption.setEndTime | ( | long | endTime | ) |
Sets the end time for message query.
| endTime | The end time for message query. The time is a UNIX time stamp in milliseconds. The default value is -1, indicating that this parameter is ignored during message query.
|
| void com.hyphenate.chat.EMFetchMessageOption.setFrom | ( | String | from | ) |
Sets the message sender in the group conversation.
| from | The user ID of the message sender in the group conversation. |
EMFetchMessageOption#setFromIds(List<String>) instead。 | void com.hyphenate.chat.EMFetchMessageOption.setFromIds | ( | List< String > | fromIds | ) |
Sets the message sender in the group conversation.
| fromIds | The user ID of the messages senders in the group conversation. |
| void com.hyphenate.chat.EMFetchMessageOption.setIsSave | ( | boolean | save | ) |
Sets whether the retrieved messages are saved to the database.
| save | Whether to save the retrieved messages to the database:
|
| void com.hyphenate.chat.EMFetchMessageOption.setMsgTypes | ( | List< EMMessage.Type > | msgTypes | ) |
Sets the types of message for query.
| msgTypes | The list of message types for query. See EMMessage.Type. You can set several message types. The default value is null, indicating that all types of messages are retrieved. |
| void com.hyphenate.chat.EMFetchMessageOption.setStartTime | ( | long | startTime | ) |
Sets the start time for message query.
| startTime | The start time for message query. The time is a UNIX time stamp in milliseconds. The default value is -1, indicating that this parameter is ignored during message query.
|