Package ai.tock.bot.engine.message
Class Sentence
-
-
Field Summary
Fields Modifier and Type Field Description private final EventTypeeventTypeprivate final Stringtextprivate final List<GenericMessage>messagesprivate final UserInterfaceTypeuserInterfaceprivate final Longdelay
-
Constructor Summary
Constructors Constructor Description Sentence(String text, List<ConnectorMessage> messages, UserInterfaceType userInterface, Function0<NlpCallStats> nlpStatsProvider)Sentence(String text, List<GenericMessage> messages, UserInterfaceType userInterface, Long delay, Function0<NlpCallStats> nlpStatsProvider)
-
Method Summary
Modifier and Type Method Description EventTypegetEventType()final StringgetText()final List<GenericMessage>getMessages()final UserInterfaceTypegetUserInterface()LonggetDelay()ActiontoAction(PlayerId playerId, String applicationId, PlayerId recipientId)Sentenceobfuscate()Obfuscates the content of message. StringtoPrettyString()Returns a human readable string representation of the message. BooleanisSimpleMessage()Booleanequals(Object other)IntegerhashCode()-
-
Constructor Detail
-
Sentence
Sentence(String text, List<ConnectorMessage> messages, UserInterfaceType userInterface, Function0<NlpCallStats> nlpStatsProvider)
-
Sentence
Sentence(String text, List<GenericMessage> messages, UserInterfaceType userInterface, Long delay, Function0<NlpCallStats> nlpStatsProvider)
-
-
Method Detail
-
getEventType
EventType getEventType()
-
getMessages
final List<GenericMessage> getMessages()
-
getUserInterface
final UserInterfaceType getUserInterface()
-
toPrettyString
String toPrettyString()
Returns a human readable string representation of the message.
-
isSimpleMessage
Boolean isSimpleMessage()
-
-
-
-