public static class ConnectorController.DefaultImpls
Controller to connect interface Connector and interface BotDefinition.
interface Connector,
interface BotDefinition@NotNull public static ConnectorType getConnectorType(ConnectorController $this)
The type of connector used by the controller.
public static void notify(ConnectorController $this, @NotNull PlayerId recipientId, @NotNull IntentAware intent, @Nullable StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull java.util.Map<java.lang.String,java.lang.String> parameters, @Nullable ActionNotificationType notificationType, @NotNull kotlin.jvm.functions.Function1<? super java.lang.Throwable,kotlin.Unit> errorListener)
Sends a notification to the connector.
A interface BotBus is created and the corresponding story is called.
$this - the recipient identifierrecipientId - the notification intentintent - the optional step targetstep - the optional parametersparameters - notification type if anynotificationType - called when a message has not been deliverederrorListener - called when a message has not been deliveredinterface BotBus@NotNull public static Action errorMessage(ConnectorController $this, @NotNull PlayerId playerId, @NotNull java.lang.String applicationId, @NotNull PlayerId recipientId)
Returns an error message (technical error).
@NotNull public static kotlin.jvm.functions.Function1<java.lang.String,ai.tock.bot.definition.StoryDefinition> storyDefinitionLoader(ConnectorController $this)
Return a story definition provider for this controller.