tock / ai.tock.bot.connector.ga / gaFlexibleMessageForList

# gaFlexibleMessageForList

`fun I18nTranslator.gaFlexibleMessageForList(items: List<GAListItem>, title: CharSequence? = null, suggestions: List<CharSequence> = emptyList(), oneItemTitle: CharSequence? = null, oneItemSubtitle: CharSequence? = null, oneItemDescription: CharSequence? = null, oneItemSuggestions: List<CharSequence> = emptyList()): GAResponseConnectorMessage` (source)

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 items

`title` - the optional list title

`suggestions` - the suggestions

`oneItemTitle` - if not null and if there is only one item, use this as title. If null GAListItem.title is used as title

`oneItemSubtitle` - if not null and if there is only one item, use this as subtitle. If null and the image is not null, title is used as subtitle

`oneItemDescription` - if not null and if there is only one item, use this as description. If null and the image is null, GAListItem.description is used as description

`oneItemSuggestions` - the additional suggestion if there is only one item