-
public final class WebBuildersKt
-
-
Method Summary
Modifier and Type Method Description final <T extends Bus<T>> TwithWeb(T $self, Function0<WebConnectorMessage> messageProvider)Adds a Web ConnectorMessage if the current connector is Web. final OldWebMessagewebMessage(I18nTranslator $self, CharSequence title, WebButton buttons)Creates a text with buttons. final OldWebMessagewebMessage(I18nTranslator $self, CharSequence title, List<WebButton> buttons)Creates a text with buttons. final WebMessagewebMessage(I18nTranslator $self, CharSequence title, Button buttons)Creates a text with buttons. final WebMessagewebMessage(I18nTranslator $self, CharSequence title, List<Button> buttons)Creates a text with a list of buttons. final <T extends Bus<T>> WebButtonwebButton(T $self, CharSequence title, IntentAware targetIntent, String imageUrl, StoryStep<out StoryHandlerDefinition> step, Parameters parameters)Creates a button. final <T extends Bus<T>> ButtonwebUrlButton(T $self, CharSequence title, String url, String imageUrl)Creates a url button final <T extends Bus<T>> ButtonwebPostbackButton(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)Creates a postback button final <T extends Bus<T>> ButtonwebQuickReply(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)Creates a quickreply button final <T extends Bus<T>> ButtonwebIntentQuickReply(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)Creates a quickreply button with target intent final <T extends Bus<T>> ButtonwebNlpQuickReply(T $self, CharSequence title, String nlpText, String imageUrl)Creates a quickreply button with target intent final <T extends Bus<T>> WebButtonwebTextButton(T $self, CharSequence text)Creates a button from a text. final <T extends Bus<T>> WebMessagewebCard(T $self, WebCard card)Creates a WebMessage from a WebCard. final <T extends Bus<T>> WebCardwebCard(T $self, CharSequence title, CharSequence subTitle, List<Button> buttons)final <T extends Bus<T>> OldWebMessagewebCard(T $self, MediaCard card)Creates a OldWebMessage from a MediaCard. final <T extends Bus<T>> WebCardwebCardWithAttachment(T $self, CharSequence title, CharSequence subTitle, CharSequence attachmentUrl, List<Button> buttons, SendAttachment.AttachmentType type, String attachementName)final <T extends Bus<T>> WebMessagewebImage(T $self, String imageUrl, CharSequence title)Creates a WebMessage from a WebImage. final <T extends Bus<T>> WebMessagewebCarousel(T $self, WebCard cards, List<Button> buttons)Creates a WebMessage from a WebCarousel. final <T extends Bus<T>> WebMessagewebCarousel(T $self, List<WebCard> cards, List<Button> buttons)final <T extends Bus<T>> OldWebMessagewebCarousel(T $self, MediaCarousel carousel)Creates a OldWebMessage from a MediaCarousel. final <T extends Bus<T>> WebMessagewebWidget(T $self, WebWidget widget, List<Button> buttons)Creates a custom payload -
-
Method Detail
-
withWeb
final <T extends Bus<T>> T withWeb(T $self, Function0<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.
-
webMessage
@Deprecated(message = "Use other methods to create buttons") final OldWebMessage webMessage(I18nTranslator $self, CharSequence title, WebButton buttons)
Creates a text with buttons.
-
webMessage
@Deprecated(message = "Use other methods to create buttons") final OldWebMessage webMessage(I18nTranslator $self, CharSequence title, List<WebButton> buttons)
Creates a text with buttons.
-
webMessage
final WebMessage webMessage(I18nTranslator $self, CharSequence title, Button buttons)
Creates a text with buttons.
-
webMessage
final WebMessage webMessage(I18nTranslator $self, CharSequence title, List<Button> buttons)
Creates a text with a list of buttons.
-
webButton
@Deprecated(message = "Use the methods of the WebBuilders to create buttons") final <T extends Bus<T>> WebButton webButton(T $self, CharSequence title, IntentAware targetIntent, String imageUrl, StoryStep<out StoryHandlerDefinition> step, Parameters parameters)
Creates a button.
-
webUrlButton
final <T extends Bus<T>> Button webUrlButton(T $self, CharSequence title, String url, String imageUrl)
Creates a url button
-
webPostbackButton
final <T extends Bus<T>> Button webPostbackButton(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)
Creates a postback button
-
webQuickReply
@Deprecated(message = "use other builder") final <T extends Bus<T>> Button webQuickReply(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)
Creates a quickreply button
-
webIntentQuickReply
final <T extends Bus<T>> Button webIntentQuickReply(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters, String imageUrl)
Creates a quickreply button with target intent
-
webNlpQuickReply
final <T extends Bus<T>> Button webNlpQuickReply(T $self, CharSequence title, String nlpText, String imageUrl)
Creates a quickreply button with target intent
-
webTextButton
final <T extends Bus<T>> WebButton webTextButton(T $self, CharSequence text)
Creates a button from a text.
-
webCard
final <T extends Bus<T>> WebMessage webCard(T $self, WebCard card)
Creates a WebMessage from a WebCard.
-
webCard
final <T extends Bus<T>> WebCard webCard(T $self, CharSequence title, CharSequence subTitle, List<Button> buttons)
-
webCard
@Deprecated(message = "No more supported", replaceWith = @ReplaceWith(imports = {}, expression = "webCard or webCardWithAttachement")) final <T extends Bus<T>> OldWebMessage webCard(T $self, MediaCard card)
Creates a OldWebMessage from a MediaCard.
-
webCardWithAttachment
final <T extends Bus<T>> WebCard webCardWithAttachment(T $self, CharSequence title, CharSequence subTitle, CharSequence attachmentUrl, List<Button> buttons, SendAttachment.AttachmentType type, String attachementName)
-
webImage
final <T extends Bus<T>> WebMessage webImage(T $self, String imageUrl, CharSequence title)
Creates a WebMessage from a WebImage.
-
webCarousel
final <T extends Bus<T>> WebMessage webCarousel(T $self, WebCard cards, List<Button> buttons)
Creates a WebMessage from a WebCarousel.
-
webCarousel
final <T extends Bus<T>> WebMessage webCarousel(T $self, List<WebCard> cards, List<Button> buttons)
-
webCarousel
@Deprecated(message = "No more supported", replaceWith = @ReplaceWith(imports = {}, expression = "webCarousel(vararg cards: WebCard)")) final <T extends Bus<T>> OldWebMessage webCarousel(T $self, MediaCarousel carousel)
Creates a OldWebMessage from a MediaCarousel.
-
-
-
-