-
public final class GACarouselBuildersKt
-
-
Method Summary
Modifier and Type Method Description final GAResponseConnectorMessagegaMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions)Provides a message with a GACarouselSelect. final GAResponseConnectorMessagegaFlexibleMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions, CharSequence oneItemTitle, CharSequence oneItemSubtitle, CharSequence oneItemDescription, List<CharSequence> oneItemSuggestions)Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items. final GAResponseConnectorMessagegaFlexibleMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions, List<CharSequence> oneItemSuggestions, Function1<GACarouselItem, GABasicCard> oneItemBasicCardProvider)Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items. final GAExpectedIntentexpectedIntentForCarousel(I18nTranslator $self, List<GACarouselItem> items)Provides a GAExpectedIntent with a GACarouselSelect. final <T extends Bus<T>> GACarouselItemcarouselItem(T $self, IntentAware targetIntent, CharSequence title, CharSequence description, GAImage image, Pair<String, String> parameters)Provides a GACarouselItem with String parameters. final <T extends Bus<T>> GACarouselItemcarouselItem(T $self, IntentAware targetIntent, CharSequence title, CharSequence description, GAImage image, Parameters parameters)Provides a GACarouselItem with Parameters parameters. final <T extends Bus<T>> GACarouselItemcarouselItem(T $self, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence title, CharSequence description, GAImage image, Parameters parameters)Provides a GACarouselItem with StoryStep and Parameters parameters. final <T extends Bus<T>> GACarouselItemcarouselItem(T $self, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence title, CharSequence description, GAImage image, Pair<String, String> parameters)Provides a GACarouselItem with StoryStep and String parameters. -
-
Method Detail
-
gaMessageForCarousel
final GAResponseConnectorMessage gaMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions)
Provides a message with a GACarouselSelect.
-
gaFlexibleMessageForCarousel
final GAResponseConnectorMessage gaFlexibleMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions, CharSequence oneItemTitle, CharSequence oneItemSubtitle, CharSequence oneItemDescription, List<CharSequence> oneItemSuggestions)
Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items.
- Parameters:
items- the carousel itemssuggestions- the suggestionsoneItemTitle- if not null and if there is only one item, use this as title.oneItemSubtitle- if not null and if there is only one item, use this as subtitle.oneItemDescription- if not null and if there is only one item, use this as description.oneItemSuggestions- the additional suggestion if there is only one item
-
gaFlexibleMessageForCarousel
final GAResponseConnectorMessage gaFlexibleMessageForCarousel(I18nTranslator $self, List<GACarouselItem> items, List<CharSequence> suggestions, List<CharSequence> oneItemSuggestions, Function1<GACarouselItem, GABasicCard> oneItemBasicCardProvider)
Add a basic card if only one element in the items list, in order to avoid the limitation of 2 items.
- Parameters:
items- the carousel itemssuggestions- the suggestionsoneItemSuggestions- the additional suggestion if there is only one itemoneItemBasicCardProvider- provides the basic card if only one item
-
expectedIntentForCarousel
final GAExpectedIntent expectedIntentForCarousel(I18nTranslator $self, List<GACarouselItem> items)
Provides a GAExpectedIntent with a GACarouselSelect.
-
carouselItem
final <T extends Bus<T>> GACarouselItem carouselItem(T $self, IntentAware targetIntent, CharSequence title, CharSequence description, GAImage image, Pair<String, String> parameters)
Provides a GACarouselItem with String parameters.
-
carouselItem
final <T extends Bus<T>> GACarouselItem carouselItem(T $self, IntentAware targetIntent, CharSequence title, CharSequence description, GAImage image, Parameters parameters)
Provides a GACarouselItem with Parameters parameters.
-
carouselItem
final <T extends Bus<T>> GACarouselItem carouselItem(T $self, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence title, CharSequence description, GAImage image, Parameters parameters)
Provides a GACarouselItem with StoryStep and Parameters parameters.
-
carouselItem
final <T extends Bus<T>> GACarouselItem carouselItem(T $self, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence title, CharSequence description, GAImage image, Pair<String, String> parameters)
Provides a GACarouselItem with StoryStep and String parameters.
-
-
-
-