public static class SendChoice.Companion
@NotNull
public java.lang.String encodeNlpChoiceId(@NotNull
java.lang.String text)
Encodes a choice id where text will be analysed by NLP engine.
@NotNull
public java.lang.String encodeChoiceId(@NotNull
Bus<?> bus,
@NotNull
IntentAware intent,
@Nullable
StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters)
Encodes a choice id.
bus - The bus.intent - The target intent.step - The target step.parameters - The custom parameters.@NotNull
public java.lang.String encodeChoiceId(@NotNull
Bus<?> bus,
@NotNull
IntentAware intent,
@Nullable
java.lang.String step,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters)
Encodes a choice id.
bus - The bus.intent - The target intent.step - The target step.parameters - The custom parameters.@NotNull
public java.lang.String encodeChoiceId(@NotNull
IntentAware intent,
@Nullable
StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters,
@Nullable
StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> busStep,
@Nullable
Intent currentIntent,
@Nullable
java.lang.String sourceAppId)
Encodes a choice id.
intent - The target intent.step - The target step.parameters - The custom parameters.busStep - The current step of the bus.currentIntent - The current intent of the bus.sourceAppId - The app id emitter@NotNull
public java.lang.String encodeChoiceId(@NotNull
IntentAware intent,
@Nullable
java.lang.String step,
@NotNull
java.util.Map<java.lang.String,java.lang.String> parameters,
@Nullable
java.lang.String busStep,
@Nullable
Intent currentIntent,
@Nullable
java.lang.String sourceAppId)
Encodes a choice id.
intent - The target intent.step - The target step.parameters - The custom parameters.busStep - The current step of the bus.currentIntent - The current intent of the bus.sourceAppId - The app id emitter@NotNull
public kotlin.Pair<java.lang.String,java.util.Map> decodeChoiceId(@NotNull
java.lang.String id)
Decodes an id - returns the intentName and the parameters map.