Package ai.tock.bot.engine.action
Object SendChoice.Companion
-
- All Implemented Interfaces:
public class SendChoice.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static SendChoice.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StringencodeNlpChoiceId(String text)Encodes a choice id where text will be analysed by NLP engine. final StringencodeChoiceId(Bus<?> bus, IntentAware intent, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters)Encodes a choice id. final StringencodeChoiceId(Bus<?> bus, IntentAware intent, String step, Map<String, String> parameters)Encodes a choice id. final StringencodeChoiceId(IntentAware intent, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters, StoryStep<out StoryHandlerDefinition> busStep, Intent currentIntent, String sourceAppId)Encodes a choice id. final StringencodeChoiceId(IntentAware intent, String step, Map<String, String> parameters, String busStep, Intent currentIntent, String sourceAppId)Encodes a choice id. final Pair<String, Map<String, String>>decodeChoiceId(String id)Decodes an id - returns the intentName and the parameters map. final ActiondecodeChoice(String id, PlayerId senderId, String applicationId, PlayerId recipientId, String referralParameter)Decodes an id and returns an action. -
-
Method Detail
-
encodeNlpChoiceId
final String encodeNlpChoiceId(String text)
Encodes a choice id where text will be analysed by NLP engine.
-
encodeChoiceId
final String encodeChoiceId(Bus<?> bus, IntentAware intent, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters)
Encodes a choice id.
-
encodeChoiceId
final String encodeChoiceId(Bus<?> bus, IntentAware intent, String step, Map<String, String> parameters)
Encodes a choice id.
-
encodeChoiceId
final String encodeChoiceId(IntentAware intent, StoryStep<out StoryHandlerDefinition> step, Map<String, String> parameters, StoryStep<out StoryHandlerDefinition> busStep, Intent currentIntent, String sourceAppId)
Encodes a choice id.
-
encodeChoiceId
final String encodeChoiceId(IntentAware intent, String step, Map<String, String> parameters, String busStep, Intent currentIntent, String sourceAppId)
Encodes a choice id.
-
decodeChoiceId
final Pair<String, Map<String, String>> decodeChoiceId(String id)
Decodes an id - returns the intentName and the parameters map.
-
-
-
-