ChatMessageSearchOption class

服务端消息搜索选项类。

该功能为增值服务,需在环信 Console 开通「消息搜索」服务后方可使用。

Constructors

ChatMessageSearchOption({required List<String> keywordList, ChatKeywordListMatchType keywordMatchType = ChatKeywordListMatchType.OR, String? conversationId, List<MessageType>? msgTypes, int? startTime, int? endTime, MessageSearchScope searchScope = MessageSearchScope.Content})
创建服务端消息搜索选项。
ChatMessageSearchOption.fromJson(Map map)
factory

Properties

conversationId → String?
会话 ID。
final
endTime → int?
搜索的结束时间戳,单位为毫秒。
final
hashCode → int
The hash code for this object.
no setterinherited
keywordList → List<String>
关键词列表,最多 5 个关键词。每个关键词 1-120 个字符,所有关键词总共最大 120 个字符。
final
keywordMatchType → ChatKeywordListMatchType
多关键词的匹配方式,默认为 ChatKeywordListMatchType.OR。
final
msgTypes → List<MessageType>?
消息类型列表,详见 MessageType。
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchScope → MessageSearchScope
消息搜索范围,默认为 MessageSearchScope.Content。
final
startTime → int?
搜索的起始时间戳,单位为毫秒。
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited