tock / ai.tock.bot.connector.alexa / AlexaMessage

AlexaMessage

data class AlexaMessage : ConnectorMessage (source)

An alexa message.

Constructors

<init>

An alexa message.

AlexaMessage(end: Boolean, card: Card? = null, reprompt: String? = null)

Properties

card

Is there a card to send?

val card: Card?

connectorType

The connector type.

val connectorType: ConnectorType

end

Does Alexa has to quit the skill?

val end: Boolean

reprompt

Is there a reprompt?

val reprompt: String?

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?