Public Member Functions | |
| FetchMessageOption () | |
| void | setIsSave (boolean save) |
| void | setDirection (Conversation.SearchDirection direction) |
| void | setFrom (String from) |
| void | setMsgTypes (List< ChatMessage.Type > msgTypes) |
| void | setStartTime (long startTime) |
| void | setEndTime (long endTime) |
The parameter configuration class for pulling historical messages from the server.
| io.agora.chat.FetchMessageOption.FetchMessageOption | ( | ) |
The constructor.
| void io.agora.chat.FetchMessageOption.setDirection | ( | Conversation.SearchDirection | direction | ) |
Sets the message search direction.
| direction | The message search direction. See Conversation.SearchDirection.
|
| void io.agora.chat.FetchMessageOption.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 io.agora.chat.FetchMessageOption.setFrom | ( | String | from | ) |
Sets the message sender in the group conversation.
| from | The user ID of the message sender in the group conversation. |
| void io.agora.chat.FetchMessageOption.setIsSave | ( | boolean | save | ) |
Sets whether the retrieved messages are saved to the database.
| save | Whether to save the retrieved messages to the database:
|
| void io.agora.chat.FetchMessageOption.setMsgTypes | ( | List< ChatMessage.Type > | msgTypes | ) |
Sets the types of message for query.
| msgTypes | The list of message types for query. See ChatStatisticsManager.SearchMessageType. You can set several message types. The default value is null, indicating that all types of messages are retrieved. |
| void io.agora.chat.FetchMessageOption.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.
|