tock / ai.tock.bot.connector.web / WebMessage

WebMessage

data class WebMessage : WebConnectorMessage (source)

Constructors

<init>

WebMessage(content: <ERROR CLASS>)
WebMessage(text: String? = null, buttons: List<Button> = emptyList(), card: WebCard? = null, carousel: WebCarousel? = null, widget: WebWidget? = null, image: <ERROR CLASS>? = null, version: String = "1", deepLink: <ERROR CLASS>? = null)

Properties

buttons

val buttons: List<Button>

card

val card: WebCard?

carousel

val carousel: WebCarousel?

connectorType

The connector type.

val connectorType: ConnectorType

deepLink

val deepLink: <ERROR CLASS>?

image

val image: <ERROR CLASS>?

text

val text: String?

version

val version: String

widget

val widget: WebWidget?

Functions

toGenericMessage

Transforms this message into a generic GenericMessage.

fun toGenericMessage(): GenericMessage

Extension Functions

asGenericMessage

fun ConnectorMessage.asGenericMessage(assertionCreator: Assert<GenericMessage>.() -> Unit): Unit

findTransactionDecisionValueV3

Return a GATransactionDecisionValueV3 if available.

fun ConnectorMessage.findTransactionDecisionValueV3(): GATransactionDecisionValueV3?

findTransactionRequirementsCheckResultV3

Return a GATransactionRequirementsCheckResultV3 if available.

fun ConnectorMessage.findTransactionRequirementsCheckResultV3(): GATransactionRequirementsCheckResultV3?