Questions

@ApiStatus.Experimental
object Questions

The starting point for declaring a question on its own. A question declared this way can be kept in a field, added to several specs, and used to look up its typed answer in a response.

var department = Questions.named("department")
.choice("Which team should handle this?")
.option("billing", "Payments, invoicing, refunds")
.option("technical", "Bugs, outages, integrations")
.build();

Types

Link copied to clipboard
@ApiStatus.Experimental
class Named

A question name waiting for its kind. Each method starts a builder of that kind with the name and instructions already set.

Functions

Link copied to clipboard

Starts a question with the given name.