public class WebBuildersKt
@NotNull public static <T extends Bus<T>> T withWeb(@NotNull T $this$withWeb, @NotNull kotlin.jvm.functions.Function0<? extends ai.tock.bot.connector.web.WebConnectorMessage> messageProvider)
Adds a Web ConnectorMessage if the current connector is Web. You need to call BotBus.send or BotBus.end later to send this message.
@Deprecated @NotNull public static OldWebMessage webMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$webMessage, @NotNull java.lang.CharSequence title, @NotNull ai.tock.bot.connector.web.WebButton... buttons)
Creates a text with buttons.
@Deprecated @NotNull public static OldWebMessage webMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$webMessage, @NotNull java.lang.CharSequence title, @NotNull java.util.List<ai.tock.bot.connector.web.WebButton> buttons)
Creates a text with buttons.
@NotNull public static WebMessage webMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$webMessage, @NotNull java.lang.CharSequence title, @NotNull ai.tock.bot.connector.web.send.Button... buttons)
Creates a text with buttons.
@NotNull public static WebMessage webMessage(@NotNull ai.tock.bot.engine.I18nTranslator $this$webMessage, @NotNull java.lang.CharSequence title, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons)
Creates a text with a list of buttons.
@Deprecated @NotNull public static <T extends Bus<T>> WebButton webButton(@NotNull T $this$webButton, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @Nullable java.lang.String imageUrl, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull ai.tock.bot.definition.Parameters parameters)
Creates a button.
@NotNull public static <T extends Bus<T>> Button webUrlButton(@NotNull T $this$webUrlButton, @NotNull java.lang.CharSequence title, @NotNull java.lang.String url)
Creates a url button
@NotNull public static <T extends Bus<T>> Button webPostbackButton(@NotNull T $this$webPostbackButton, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull ai.tock.bot.definition.Parameters parameters)
Creates a postback button
@NotNull public static <T extends Bus<T>> Button webQuickReply(@NotNull T $this$webQuickReply, @NotNull java.lang.CharSequence title, @Nullable ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull ai.tock.bot.definition.Parameters parameters, @Nullable java.lang.String imageUrl)
Creates a quickreply button
@NotNull public static <T extends Bus<T>> WebButton webTextButton(@NotNull T $this$webTextButton, @NotNull java.lang.CharSequence text)
Creates a button from a text.
@NotNull public static <T extends Bus<T>> WebMessage webCard(@NotNull T $this$webCard, @NotNull WebCard card)
Creates a class WebMessage from a class WebCard.
class WebMessage,
class WebCard@NotNull public static <T extends Bus<T>> WebCard webCard(@NotNull T $this$webCard, @Nullable java.lang.CharSequence title, @Nullable java.lang.CharSequence subTitle, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons)
@NotNull public static <T extends Bus<T>> WebCard webCardWithAttachment(@NotNull T $this$webCardWithAttachment, @Nullable java.lang.CharSequence title, @Nullable java.lang.CharSequence subTitle, @NotNull java.lang.CharSequence attachmentUrl, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons, @NotNull ai.tock.bot.engine.action.SendAttachment.AttachmentType type, @NotNull java.lang.String attachementName)
@NotNull public static <T extends Bus<T>> WebMessage webCarousel(@NotNull T $this$webCarousel, @NotNull WebCard[] cards, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons)
Creates a class WebMessage from a class WebCarousel.
class WebMessage,
class WebCarousel@NotNull public static <T extends Bus<T>> WebMessage webCarousel(@NotNull T $this$webCarousel, @NotNull java.util.List<ai.tock.bot.connector.web.send.WebCard> cards, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons)
@Deprecated @NotNull public static <T extends Bus<T>> OldWebMessage webCard(@NotNull T $this$webCard, @NotNull ai.tock.bot.connector.media.MediaCard card)
Creates a class OldWebMessage from a MediaCard.
class OldWebMessage@Deprecated @NotNull public static <T extends Bus<T>> OldWebMessage webCarousel(@NotNull T $this$webCarousel, @NotNull ai.tock.bot.connector.media.MediaCarousel carousel)
Creates a class OldWebMessage from a MediaCarousel.
class OldWebMessage@NotNull public static <T extends Bus<T>> WebMessage webWidget(@NotNull T $this$webWidget, @NotNull WebWidget widget, @NotNull java.util.List<? extends ai.tock.bot.connector.web.send.Button> buttons)
Creates a custom payload