BuilderContext
class BuilderContext(builderFactory: () -> MessageSendApi.Body.Builder) : SendingMessageParser.AbstractBuilderContext<MessageSendApi.Body.Builder> (source)
Inherited functions
Link copied to clipboard
inline fun builderOrNew(check: (MessageSendApi.Body.Builder) -> Boolean): MessageSendApi.Body.Builder
如果符合 check 的条件,得到 builder, 否则使用 newBuilder 构建一个新的builder。
Link copied to clipboard