CustomProperties
data class CustomProperties(val className: String, val properties: Map<String, String> = emptyMap()) : RecallMessageCacheStrategyConfiguration(source)
代表为提供一个 CustomPropertiesMiraiRecallMessageCacheStrategy 的具体实现类型 className 来进行构建。
提供的 className 类型必须至少存在一个无参公开构造用来进行实例化。
{
"type": "custom_properties",
"className": "com.example.FooCustomPropertiesMiraiRecallMessageCacheStrategyImpl",
"properties": {
"foo": "foo",
"tar": "bar"
}
}
Content copied to clipboard
Constructors
Types
Functions
Link copied to clipboard
open override fun recallMessageCacheStrategy(config: MiraiBotVerifyInfoConfiguration): MiraiRecallMessageCacheStrategy
提供 MiraiBotVerifyInfoConfiguration 信息,计算并得到一个缓存策略 MiraiRecallMessageCacheStrategy。