-
public final class GAListBuildersKt
-
-
Method Summary
Modifier and Type Method Description final GAResponseConnectorMessagegaMessage(I18nTranslator $self, GARichResponse gaRichResponse, List<GAListItem> listItems, CharSequence title)Provides a message with a GAListSelect. final GAResponseConnectorMessagegaMessageForList(I18nTranslator $self, List<GAListItem> items, CharSequence title, List<CharSequence> suggestions)Provides a message with a GAListSelect and a list of GASuggestion. final GAResponseConnectorMessagegaFlexibleMessageForList(I18nTranslator $self, List<GAListItem> items, CharSequence title, 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 GAExpectedIntentexpectedIntentForList(I18nTranslator $self, List<GAListItem> items, CharSequence title)Provides a GAExpectedIntent with a GAListSelect. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, Pair<String, String> parameters)Provides a GAListItem with String parameters without description. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, CharSequence description, String imageUrl, Pair<String, String> parameters)Provides a GAListItem with String parameters with description and optional imageUrl. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, Parameters parameters)Provides a GAListItem with String parameters without description. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, CharSequence description, String imageUrl, Parameters parameters)Provides a GAListItem with String parameters with description and optional imageUrl. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters)Provides a GAListItem with StoryStep and Parameters parameters without description. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Pair<String, String> parameters)Provides a GAListItem with StoryStep and Parameters parameters without description. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence description, String imageUrl, Parameters parameters)Provides a GAListItem with StoryStep and Parameters parameters. final <T extends Bus<T>> GAListItemlistItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence description, String imageUrl, Pair<String, String> parameters)Provides a GAListItem with StoryStep and Parameters parameters. -
-
Method Detail
-
gaMessage
final GAResponseConnectorMessage gaMessage(I18nTranslator $self, GARichResponse gaRichResponse, List<GAListItem> listItems, CharSequence title)
Provides a message with a GAListSelect.
-
gaMessageForList
final GAResponseConnectorMessage gaMessageForList(I18nTranslator $self, List<GAListItem> items, CharSequence title, List<CharSequence> suggestions)
Provides a message with a GAListSelect and a list of GASuggestion.
-
gaFlexibleMessageForList
final GAResponseConnectorMessage gaFlexibleMessageForList(I18nTranslator $self, List<GAListItem> items, CharSequence title, 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 itemstitle- the optional list titlesuggestions- 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
-
expectedIntentForList
final GAExpectedIntent expectedIntentForList(I18nTranslator $self, List<GAListItem> items, CharSequence title)
Provides a GAExpectedIntent with a GAListSelect.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, Pair<String, String> parameters)
Provides a GAListItem with String parameters without description.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, CharSequence description, String imageUrl, Pair<String, String> parameters)
Provides a GAListItem with String parameters with description and optional imageUrl.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, Parameters parameters)
Provides a GAListItem with String parameters without description.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, CharSequence description, String imageUrl, Parameters parameters)
Provides a GAListItem with String parameters with description and optional imageUrl.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Parameters parameters)
Provides a GAListItem with StoryStep and Parameters parameters without description.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, Pair<String, String> parameters)
Provides a GAListItem with StoryStep and Parameters parameters without description.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence description, String imageUrl, Parameters parameters)
Provides a GAListItem with StoryStep and Parameters parameters.
-
listItem
final <T extends Bus<T>> GAListItem listItem(T $self, CharSequence title, IntentAware targetIntent, StoryStep<out StoryHandlerDefinition> step, CharSequence description, String imageUrl, Pair<String, String> parameters)
Provides a GAListItem with StoryStep and Parameters parameters.
-
-
-
-