tock / ai.tock.bot.engine.message / Message

Message

interface Message (source)

A message.

Properties

delay

abstract val delay: Long

eventType

abstract val eventType: EventType

Functions

isSimpleMessage

open fun isSimpleMessage(): Boolean

obfuscate

Obfuscates the content of message.

open fun obfuscate(): Message

toAction

open fun toAction(bus: BotBus): Action
abstract fun toAction(playerId: PlayerId, applicationId: String, recipientId: PlayerId): Action

toPrettyString

Returns a human readable string representation of the message.

open fun toPrettyString(): String

Inheritors

ActionWrappedMessage

data class ActionWrappedMessage : Message

Attachment

A simple attachment file.

data class Attachment : Message

Choice

A user choice.

data class Choice : Message

Location

User location data.

data class Location : Message

Sentence

Could be a simple text, or a complex message using secondary constructor.

data class Sentence : Message