|
Chat SDK for Unity and Windows v1.3.2
|
Public 属性 | |
| bool | IsSave |
| MessageSearchDirection | Direction = MessageSearchDirection.UP |
| string | From |
| List< MessageBodyType > | MsgTypes |
| long | StartTime = -1 |
| long | EndTime = -1 |
从服务端查询历史消息的参数配置类。
| bool AgoraChat.FetchServerMessagesOption.IsSave |
获取的消息是否保存到数据库: -true:保存到数据库; -(默认)false:不保存到数据库。
| MessageSearchDirection AgoraChat.FetchServerMessagesOption.Direction = MessageSearchDirection.UP |
消息搜索方向,详见 MessageSearchDirection。
| string AgoraChat.FetchServerMessagesOption.From |
消息发送方的用户 ID。
仅用于群组消息。
| List<MessageBodyType> AgoraChat.FetchServerMessagesOption.MsgTypes |
要查询的消息类型列表,默认为空,表示返回所有类型的消息。
| long AgoraChat.FetchServerMessagesOption.StartTime = -1 |
消息查询的起始时间,Unix 时间戳,单位为毫秒。默认为 -1,表示消息查询时会忽略该参数。
若起始时间设置为特定时间点,而结束时间采用默认值 -1,则查询起始时间至当前时间的消息。
若起始时间采用默认值 -1,而结束时间设置了特定时间,SDK 返回从会话中最早的消息到结束时间点的消息。
| long AgoraChat.FetchServerMessagesOption.EndTime = -1 |
消息查询的结束时间,Unix 时间戳,单位为毫秒。默认为 -1,表示消息查询时会忽略该参数。
若起始时间设置为特定时间点,而结束时间采用默认值 -1,则查询起始时间至当前时间的消息。
若起始时间采用默认值 -1,而结束时间设置了特定时间,SDK 返回从会话中最早的消息到结束时间点的消息。