tock / ai.tock.bot.connector / ConnectorMessage

ConnectorMessage

interface ConnectorMessage : ConnectorMessageProvider (source)

Connector specific message format.

Properties

connectorType

The connector type.

abstract val connectorType: ConnectorType

Functions

obfuscate

Obfuscate the message - by default this method does nothing.

open fun obfuscate(): ConnectorMessage

toConnectorMessage

Provides the ConnectorMessage.

open fun toConnectorMessage(): ConnectorMessage

toGenericMessage

Transforms this message into a generic GenericMessage.

open 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?

Inheritors

AlexaInputMessage

The user message sent by Alexa.

data class AlexaInputMessage : ConnectorMessage

AlexaMessage

An alexa message.

data class AlexaMessage : ConnectorMessage

GARequestConnectorMessage

data class GARequestConnectorMessage : ConnectorMessage

GAResponseConnectorMessage

data class GAResponseConnectorMessage : ConnectorMessage

MessengerConnectorMessage

abstract class MessengerConnectorMessage : ConnectorMessage

SerializableConnectorMessage

A json serializable ConnectorMessage. For a Connector implementation, implementing this interface for all of its ConnectorMessage types is prerequisite in order to support bot orchestration.

interface SerializableConnectorMessage : ConnectorMessage

SlackConnectorMessage

abstract class SlackConnectorMessage : ConnectorMessage

TeamsBotMessage

abstract class TeamsBotMessage : ConnectorMessage

TwitterConnectorMessage

abstract class TwitterConnectorMessage : ConnectorMessage

TwitterPublicConnectorMessage

abstract class TwitterPublicConnectorMessage : ConnectorMessage

WhatsAppBotMessage

abstract class WhatsAppBotMessage : ConnectorMessage

WhatsAppMessages

See https://developers.facebook.com/docs/whatsapp/api/webhooks/inbound#message-obj.

data class WhatsAppMessages : ConnectorMessage