public class GACarouselBuildersKt
| Modifier and Type | Method and Description |
|---|---|
static <T extends Bus<T>> |
carouselItem(T $receiver,
ai.tock.bot.definition.IntentAware targetIntent,
java.lang.CharSequence title,
java.lang.CharSequence description,
GAImage image,
kotlin.Pair... parameters)
Provides a
class GACarouselItem with String parameters. |
static <T extends Bus<T>> |
carouselItem(T $receiver,
ai.tock.bot.definition.IntentAware targetIntent,
java.lang.CharSequence title,
java.lang.CharSequence description,
GAImage image,
ai.tock.bot.definition.Parameters parameters)
Provides a
class GACarouselItem with Parameters parameters. |
static <T extends Bus<T>> |
carouselItem(T $receiver,
ai.tock.bot.definition.IntentAware targetIntent,
ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step,
java.lang.CharSequence title,
java.lang.CharSequence description,
GAImage image,
ai.tock.bot.definition.Parameters parameters)
Provides a
class GACarouselItem with StoryStep and Parameters parameters. |
static <T extends Bus<T>> |
carouselItem(T $receiver,
ai.tock.bot.definition.IntentAware targetIntent,
ai.tock.bot.definition.StoryStep<? extends ai.tock.bot.definition.StoryHandlerDefinition> step,
java.lang.CharSequence title,
java.lang.CharSequence description,
GAImage image,
kotlin.Pair... parameters)
Provides a
class GACarouselItem with StoryStep and String parameters. |
static GAExpectedIntent |
expectedIntentForCarousel(ai.tock.bot.engine.I18nTranslator $receiver,
java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items)
Provides a
class GAExpectedIntent with a class GACarouselSelect. |
static GAResponseConnectorMessage |
gaFlexibleMessageForCarousel(ai.tock.bot.engine.I18nTranslator $receiver,
java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items,
java.util.List<? extends java.lang.CharSequence> suggestions,
java.lang.CharSequence oneItemTitle,
java.lang.CharSequence oneItemSubtitle,
java.lang.CharSequence oneItemDescription,
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.
|
static GAResponseConnectorMessage |
gaFlexibleMessageForCarousel(ai.tock.bot.engine.I18nTranslator $receiver,
java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items,
java.util.List<? extends java.lang.CharSequence> suggestions,
java.util.List<? extends java.lang.CharSequence> oneItemSuggestions,
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.
|
static GAResponseConnectorMessage |
gaMessageForCarousel(ai.tock.bot.engine.I18nTranslator $receiver,
java.util.List<ai.tock.bot.connector.ga.model.response.GACarouselItem> items,
java.util.List<? extends java.lang.CharSequence> suggestions)
Provides a message with a
class GACarouselSelect. |
@NotNull public static GAResponseConnectorMessage gaMessageForCarousel(@NotNull ai.tock.bot.engine.I18nTranslator $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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 $receiver, @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