public class GACarouselBuildersKt
@NotNull public static GAResponseConnectorMessage gaMessageForCarousel(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaMessageForCarousel, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items, @NotNull java.util.List<? extends java.lang.CharSequence> suggestions)
Provides a message with a class GACarouselSelect.
class GACarouselSelect@NotNull public static GAResponseConnectorMessage gaFlexibleMessageForCarousel(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaFlexibleMessageForCarousel, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items, @NotNull java.util.List<? extends java.lang.CharSequence> suggestions, @Nullable java.lang.CharSequence oneItemTitle, @Nullable java.lang.CharSequence oneItemSubtitle, @Nullable java.lang.CharSequence oneItemDescription, @NotNull java.util.List<? extends java.lang.CharSequence> oneItemSuggestions)
Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items.
items - the carousel itemssuggestions - the suggestionsoneItemTitle - if not null and if there is only one item, use this as title. If null GACarouselItem.title is used as titleoneItemSubtitle - if not null and if there is only one item, use this as subtitle. If null and the image is not null, GACarouselItem.description is used as subtitleoneItemDescription - if not null and if there is only one item, use this as description. If null and the image is null, GACarouselItem.description is used as descriptiononeItemSuggestions - the additional suggestion if there is only one item@NotNull public static GAResponseConnectorMessage gaFlexibleMessageForCarousel(@NotNull ai.tock.bot.engine.I18nTranslator $this$gaFlexibleMessageForCarousel, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items, @NotNull java.util.List<? extends java.lang.CharSequence> suggestions, @NotNull java.util.List<? extends java.lang.CharSequence> oneItemSuggestions, @NotNull kotlin.jvm.functions.Function1<? super ai.tock.bot.connector.ga.model.response.GACarouselItem,ai.tock.bot.connector.ga.model.response.GABasicCard> oneItemBasicCardProvider)
Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items.
items - the carousel itemssuggestions - the suggestionsoneItemSuggestions - the additional suggestion if there is only one itemoneItemBasicCardProvider - provides the basic card if only one item@NotNull public static GAExpectedIntent expectedIntentForCarousel(@NotNull ai.tock.bot.engine.I18nTranslator $this$expectedIntentForCarousel, @NotNull java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items)
Provides a class GAExpectedIntent with a class GACarouselSelect.
class GAExpectedIntent,
class GACarouselSelect@NotNull public static <T extends Bus<T>> GACarouselItem carouselItem(@NotNull T $this$carouselItem, @NotNull ai.tock.bot.definition.IntentAware targetIntent, @NotNull java.lang.CharSequence title, @Nullable java.lang.CharSequence description, @Nullable GAImage image, @NotNull kotlin.Pair... parameters)
Provides a class GACarouselItem with String parameters.
class GACarouselItem,
String@NotNull public static <T extends Bus<T>> GACarouselItem carouselItem(@NotNull T $this$carouselItem, @NotNull ai.tock.bot.definition.IntentAware targetIntent, @NotNull java.lang.CharSequence title, @Nullable java.lang.CharSequence description, @Nullable GAImage image, @NotNull ai.tock.bot.definition.Parameters parameters)
Provides a class GACarouselItem with Parameters parameters.
class GACarouselItem@NotNull public static <T extends Bus<T>> GACarouselItem carouselItem(@NotNull T $this$carouselItem, @NotNull ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull java.lang.CharSequence title, @Nullable java.lang.CharSequence description, @Nullable GAImage image, @NotNull ai.tock.bot.definition.Parameters parameters)
Provides a class GACarouselItem with StoryStep and Parameters parameters.
class GACarouselItem@NotNull public static <T extends Bus<T>> GACarouselItem carouselItem(@NotNull T $this$carouselItem, @NotNull ai.tock.bot.definition.IntentAware targetIntent, @Nullable ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step, @NotNull java.lang.CharSequence title, @Nullable java.lang.CharSequence description, @Nullable GAImage image, @NotNull kotlin.Pair... parameters)
Provides a class GACarouselItem with StoryStep and String parameters.
class GACarouselItem,
String