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"
}
}

Constructors

Link copied to clipboard
fun CustomProperties(className: String, properties: Map<String, String> = emptyMap())

Types

Link copied to clipboard
object Companion

Functions

Properties

Link copied to clipboard
Link copied to clipboard