-
- All Implemented Interfaces:
-
ai.tock.bot.engine.I18nTranslator,ai.tock.translator.I18nKeyProvider
public class ChatButtons extends ChatWidget
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ChatCardElement>childrenprivate final I18nTranslatori18nTranslatorprivate final StringcontextIdprivate final ConnectorTypetargetConnectorTypeprivate final UserInterfaceTypeuserInterfaceTypeprivate final LocaleuserLocale
-
Constructor Summary
Constructors Constructor Description ChatButtons(I18nTranslator i18nTranslator)
-
Method Summary
Modifier and Type Method Description final ChatButton.ChatTextButtontextButton(CharSequence text, Function1<ChatButton, Unit> init)final ChatButton.ChatTextButtonnlpTextButton(CharSequence text)final ChatButton.ChatIconExternalButtoniconButton(String iconUrl, Function1<ChatButton, Unit> init)final ChatButton.ChatIconEmbeddedButtoniconButton(ChatIcon icon, Function1<ChatButton, Unit> init)final List<ChatCardElement>getChildren()final I18nTranslatorgetI18nTranslator()StringgetContextId()ConnectorTypegetTargetConnectorType()UserInterfaceTypegetUserInterfaceType()LocalegetUserLocale()-
Methods inherited from class ai.tock.bot.connector.googlechat.builder.ChatWidget
hasChatButtons -
Methods inherited from class ai.tock.translator.I18nKeyProvider
equals, hashCode, toString -
Methods inherited from class ai.tock.bot.engine.I18nTranslator
i18n, i18n -
Methods inherited from class ai.tock.bot.connector.googlechat.builder.ChatCardElement
translate, translate, translate, translateAndReturnBlankAsNull -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
textButton
final ChatButton.ChatTextButton textButton(CharSequence text, Function1<ChatButton, Unit> init)
-
nlpTextButton
final ChatButton.ChatTextButton nlpTextButton(CharSequence text)
-
iconButton
final ChatButton.ChatIconExternalButton iconButton(String iconUrl, Function1<ChatButton, Unit> init)
-
iconButton
final ChatButton.ChatIconEmbeddedButton iconButton(ChatIcon icon, Function1<ChatButton, Unit> init)
-
getChildren
final List<ChatCardElement> getChildren()
-
getI18nTranslator
final I18nTranslator getI18nTranslator()
-
getContextId
String getContextId()
-
getTargetConnectorType
ConnectorType getTargetConnectorType()
-
getUserInterfaceType
UserInterfaceType getUserInterfaceType()
-
getUserLocale
Locale getUserLocale()
-
-
-
-