public class AlexaBuildersKt
@NotNull public static ai.tock.bot.connector.ConnectorType getAlexaConnectorType()
The Alexa ConnectorType.
@NotNull public static <T extends Bus<T>> T sendToAlexa(@NotNull T $this$sendToAlexa, @NotNull kotlin.jvm.functions.Function1<? super T,ai.tock.bot.connector.alexa.AlexaMessage> messageProvider, long delay)
Sends an Alexa message only if the ConnectorType of the current BotBus is alexaConnectorType.
alexaConnectorType@NotNull public static <T extends Bus<T>> T endForAlexa(@NotNull T $this$endForAlexa, @NotNull kotlin.jvm.functions.Function1<? super T,ai.tock.bot.connector.alexa.AlexaMessage> messageProvider, long delay)
Sends an Alexa message as last bot answer, only if the ConnectorType of the current BotBus is alexaConnectorType.
alexaConnectorType@NotNull public static <T extends Bus<T>> T withAlexa(@NotNull T $this$withAlexa, @NotNull kotlin.jvm.functions.Function0<ai.tock.bot.connector.alexa.AlexaMessage> messageProvider)
Adds an Alexa ConnectorMessage if the current connector is Alexa. You need to call BotBus.send or BotBus.end later to send this message.
@NotNull public static AlexaMessage alexaEndConversation()
End the conversation with the skill.
@NotNull public static AlexaMessage alexaReprompt(@NotNull ai.tock.bot.engine.I18nTranslator $this$alexaReprompt, @NotNull java.lang.CharSequence reprompt)
Set a reprompt.
@NotNull public static AlexaMessage alexaStandardCard(@NotNull ai.tock.bot.engine.I18nTranslator $this$alexaStandardCard, @NotNull java.lang.CharSequence title, @NotNull java.lang.CharSequence text, @NotNull java.lang.String smallImageUrl, @NotNull java.lang.String largeImageUrl)
Add the specified card.