public class AlexaBuildersKt
| Modifier and Type | Method and Description |
|---|---|
static AlexaMessage |
alexaEndConversation()
End the conversation with the skill.
|
static AlexaMessage |
alexaReprompt(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence reprompt)
Set a reprompt.
|
static AlexaMessage |
alexaStandardCard(ai.tock.bot.engine.I18nTranslator $receiver,
java.lang.CharSequence title,
java.lang.CharSequence text,
java.lang.String smallImageUrl,
java.lang.String largeImageUrl)
Add the specified card.
|
static <T extends Bus<T>> |
endForAlexa(T $receiver,
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. |
static ai.tock.bot.connector.ConnectorType |
getAlexaConnectorType()
The Alexa ConnectorType.
|
static <T extends Bus<T>> |
sendToAlexa(T $receiver,
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. |
static <T extends Bus<T>> |
withAlexa(T $receiver,
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 ai.tock.bot.connector.ConnectorType getAlexaConnectorType()
The Alexa ConnectorType.
@NotNull public static <T extends Bus<T>> T sendToAlexa(@NotNull T $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @NotNull java.lang.CharSequence reprompt)
Set a reprompt.
@NotNull public static AlexaMessage alexaStandardCard(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @NotNull java.lang.CharSequence title, @NotNull java.lang.CharSequence text, @NotNull java.lang.String smallImageUrl, @NotNull java.lang.String largeImageUrl)
Add the specified card.