ChoiceBuilder

A Choice's options, in order. Option keys and descriptions are both sent to the model.

Functions

Link copied to clipboard
infix fun String.means(description: String)
infix fun String.means(entry: JsonElement)
Link copied to clipboard
fun option(key: String, description: String? = null)

Adds an option; with no description it is sent as null, fine when the key says it all.

fun option(key: String, entry: JsonElement)
Link copied to clipboard
fun options(vararg keys: String)

Adds undescribed options.