open class SendSentence : Action
(source)
The most important Action class. Could be a simple text, or a complex message using one or more ConnectorMessage.
<init> |
The most important Action class. Could be a simple text, or a complex message using one or more ConnectorMessage. SendSentence(playerId: PlayerId, applicationId: String, recipientId: PlayerId, text: CharSequence?, messages: MutableList<ConnectorMessage> = mutableListOf(), id: Id<Action> = newId(), date: Instant = Instant.now(), state: EventState = EventState(), metadata: ActionMetadata = ActionMetadata(), nlpStats: NlpCallStats? = null, precomputedNlp: NlpResult? = null) |
messages |
open val messages: MutableList<ConnectorMessage> |
nlpStats |
open var nlpStats: NlpCallStats? |
precomputedNlp |
Used by analysed nlp (ie Alexa). val precomputedNlp: NlpResult? |
stringText |
val stringText: String? |
text |
val text: CharSequence? |
changeConnectorMessage |
Replace a connectorMessage fun changeConnectorMessage(message: ConnectorMessage): SendSentence |
hasEmptyText |
fun hasEmptyText(): Boolean |
hasMessage |
fun hasMessage(type: ConnectorType): Boolean |
message |
fun message(type: ConnectorType): ConnectorMessage? |
toMessage |
open fun toMessage(): Message |
toString |
open fun toString(): String |