buildArk

inline fun buildArk(templateId: String, builder: ArkBuilder.() -> Unit): Message.Ark(source)

通过 DSL 语法构建 Message.Ark.

val ark = buildArk("0") {
kvs { // 增加kvs
kv("Key1", "value") // kv
kv("Key2", "value2") {
obj() // empty obj -> { "objKv": [] }
obj {
kv("objKey1", "valueA")
kv("objKey2", "valueB")
}
}
}
}

fun buildArk(templateId: String): Message.Ark(source)

根据模板ID构建一个 Message.Ark