tock / ai.tock.bot.connector.messenger.model.send / TextMessage

TextMessage

class TextMessage : Message (source)

Constructors

<init>

TextMessage(text: String, quickReplies: List<QuickReply>? = null)

Properties

text

val text: String

Functions

copy

fun copy(quickReplies: List<QuickReply>?): Message

equals

fun equals(other: Any?): Boolean

hashCode

fun hashCode(): Int

obfuscate

Obfuscate the message - by default this method does nothing.

fun obfuscate(): ConnectorMessage

toGenericMessage

Transforms this message into a generic GenericMessage.

fun toGenericMessage(): GenericMessage?

toString

fun toString(): String

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?