data class Sentence : Message
(source)
Could be a simple text, or a complex message using secondary constructor.
<init> |
Sentence(text: String?, messages: MutableList<ConnectorMessage> = mutableListOf(), userInterface: UserInterfaceType? = null, nlpStatsProvider: (() -> NlpCallStats?)? = null)
Could be a simple text, or a complex message using secondary constructor. Sentence(text: String?, messages: MutableList<GenericMessage> = mutableListOf(), userInterface: UserInterfaceType? = null, delay: Long = 0, nlpStatsProvider: (() -> NlpCallStats?)? = null) |
delay |
val delay: Long |
eventType |
val eventType: EventType |
messages |
val messages: MutableList<GenericMessage> |
text |
val text: String? |
userInterface |
val userInterface: UserInterfaceType? |
equals |
fun equals(other: Any?): Boolean |
hashCode |
fun hashCode(): Int |
isSimpleMessage |
fun isSimpleMessage(): Boolean |
obfuscate |
Obfuscates the content of message. fun obfuscate(): Sentence |
toAction |
fun toAction(playerId: PlayerId, applicationId: String, recipientId: PlayerId): Action |
toPrettyString |
Returns a human readable string representation of the message. fun toPrettyString(): String |