-
- All Implemented Interfaces:
-
ai.tock.bot.engine.I18nTranslator,ai.tock.translator.I18nKeyProvider
public final class ChatSection extends ChatCardElement
-
-
Field Summary
Fields Modifier and Type Field Description private final CharSequenceheaderprivate final List<ChatCardElement>childrenprivate final I18nTranslatori18nTranslatorprivate final StringcontextIdprivate final ConnectorTypetargetConnectorTypeprivate final UserInterfaceTypeuserInterfaceTypeprivate final LocaleuserLocale
-
Constructor Summary
Constructors Constructor Description ChatSection(CharSequence header, I18nTranslator i18nTranslator)
-
Method Summary
Modifier and Type Method Description final CharSequencegetHeader()final ChatTextParagraphtextParagraph(CharSequence text)final ChatKeyValuekeyValue(CharSequence topLabel, CharSequence content, CharSequence bottomLabel, Function1<ChatButton, Unit> action, Boolean contentMultiline, String iconUrl, ChatIcon icon)final ChatImageimage(String imageUrl, Function1<ChatButton.ChatIconExternalButton, Unit> init)final ChatButtonsbuttons(Function1<ChatButtons, Unit> init)-
Methods inherited from class ai.tock.bot.connector.googlechat.builder.ChatCardElement
getChildren, getI18nTranslator, hasChatButtons -
Methods inherited from class ai.tock.bot.engine.I18nTranslator
getContextId, getTargetConnectorType, getUserInterfaceType, getUserLocale, translate, translate, translate, translateAndReturnBlankAsNull -
Methods inherited from class ai.tock.translator.I18nKeyProvider
i18n, i18n -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ChatSection
ChatSection(CharSequence header, I18nTranslator i18nTranslator)
-
-
Method Detail
-
getHeader
final CharSequence getHeader()
-
textParagraph
final ChatTextParagraph textParagraph(CharSequence text)
-
keyValue
final ChatKeyValue keyValue(CharSequence topLabel, CharSequence content, CharSequence bottomLabel, Function1<ChatButton, Unit> action, Boolean contentMultiline, String iconUrl, ChatIcon icon)
-
image
final ChatImage image(String imageUrl, Function1<ChatButton.ChatIconExternalButton, Unit> init)
-
buttons
final ChatButtons buttons(Function1<ChatButtons, Unit> init)
-
-
-
-