-
- All Implemented Interfaces:
-
ai.tock.bot.definition.ConnectorStoryHandler,ai.tock.bot.engine.BotBus,ai.tock.bot.engine.Bus,ai.tock.bot.engine.I18nTranslator,ai.tock.translator.I18nKeyProvider
public class SearchConnector extends ConnectorStoryHandlerBase<SearchDef>
Connector specific behaviour.
-
-
Field Summary
Fields Modifier and Type Field Description private final Actionactionprivate final StringapplicationIdprivate final BotDefinitionbotDefinitionprivate final PlayerIdbotIdprivate final ConnectorDataconnectorDataprivate final SearchDefcontextprivate final StringcontextIdprivate final IntegercurrentAnswerIndexprivate final DialogcurrentDialogprivate final IntentAwarecurrentIntentprivate final Dialogdialogprivate final Map<String, EntityStateValue>entitiesprivate I18nKeyProvideri18nProviderprivate final IntentAwareintentprivate NextUserActionStatenextUserActionStateprivate StoryStep<out StoryHandlerDefinition>stepprivate final StringstepNameprivate Storystoryprivate final ConnectorTypetargetConnectorTypeprivate final Booleantestprivate final ConnectorunderlyingConnectorprivate final PlayerIduserIdprivate final UserInterfaceTypeuserInterfaceTypeprivate final LocaleuserLocaleprivate final UserPreferencesuserPreferencesprivate final StringuserTextprivate final UserTimelineuserTimeline
-
Method Summary
Modifier and Type Method Description final CharSequencetitle(Section $self)final CharSequencecontent(Section $self)final BotBussendFirstJourney(Journey journey)abstract ConnectorMessagesendFirstJourney(List<Section> sections)ActiongetAction()StringgetApplicationId()BotDefinitiongetBotDefinition()PlayerIdgetBotId()ConnectorDatagetConnectorData()SearchDefgetContext()StringgetContextId()IntegergetCurrentAnswerIndex()DialoggetCurrentDialog()IntentAwaregetCurrentIntent()DialoggetDialog()Map<String, EntityStateValue>getEntities()I18nKeyProvidergetI18nProvider()IntentAwaregetIntent()NextUserActionStategetNextUserActionState()StoryStep<out StoryHandlerDefinition>getStep()StringgetStepName()StorygetStory()ConnectorTypegetTargetConnectorType()BooleangetTest()ConnectorgetUnderlyingConnector()PlayerIdgetUserId()UserInterfaceTypegetUserInterfaceType()LocalegetUserLocale()UserPreferencesgetUserPreferences()StringgetUserText()UserTimelinegetUserTimeline()UnitsetI18nProvider(I18nKeyProvider i18nProvider)UnitsetNextUserActionState(NextUserActionState nextUserActionState)UnitsetStep(StoryStep<out StoryHandlerDefinition> step)UnitsetStory(Story story)-
Methods inherited from class ai.tock.bot.definition.ConnectorStoryHandlerBase
booleanChoice, changeContextValue, changeContextValue, changeEntityText, changeEntityValue, changeEntityValue, changeEntityValue, choice, contextValue, contextValue, defaultDelay, end, end, end, end, end, end, end, endRawText, entityText, entityText, entityValue, entityValue, entityValueDetails, entityValueDetails, getBusContextValue, getBusContextValue, handleAndSwitchStory, hasActionEntity, hasActionEntity, hasChoiceValue, i18n, i18nKey, isChoiceAction, isFeatureEnabled, isIntent, markAsUnknown, nlpStats, reloadProfile, removeAllEntityValues, removeEntityValue, removeEntityValue, resetDialogState, send, send, send, send, send, send, send, setBusContextValue, setBusContextValue, skipAnswer, switchStory, withMessage, withNotificationType, withPriority, withVisibility -
Methods inherited from class ai.tock.translator.I18nKeyProvider
equals, hashCode, toString -
Methods inherited from class ai.tock.bot.engine.I18nTranslator
i18n -
Methods inherited from class ai.tock.bot.engine.BotBus
sendRawText, withMessage, withMessage -
Methods inherited from class ai.tock.bot.engine.Bus
translate, translate, translate, translateAndReturnBlankAsNull -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
title
final CharSequence title(Section $self)
-
content
final CharSequence content(Section $self)
-
sendFirstJourney
final BotBus sendFirstJourney(Journey journey)
-
sendFirstJourney
abstract ConnectorMessage sendFirstJourney(List<Section> sections)
-
getAction
Action getAction()
-
getApplicationId
String getApplicationId()
-
getBotDefinition
BotDefinition getBotDefinition()
-
getBotId
PlayerId getBotId()
-
getConnectorData
ConnectorData getConnectorData()
-
getContext
SearchDef getContext()
-
getContextId
String getContextId()
-
getCurrentAnswerIndex
Integer getCurrentAnswerIndex()
-
getCurrentDialog
Dialog getCurrentDialog()
-
getCurrentIntent
IntentAware getCurrentIntent()
-
getDialog
Dialog getDialog()
-
getEntities
Map<String, EntityStateValue> getEntities()
-
getI18nProvider
I18nKeyProvider getI18nProvider()
-
getIntent
IntentAware getIntent()
-
getNextUserActionState
NextUserActionState getNextUserActionState()
-
getStep
StoryStep<out StoryHandlerDefinition> getStep()
-
getStepName
String getStepName()
-
getStory
Story getStory()
-
getTargetConnectorType
ConnectorType getTargetConnectorType()
-
getUnderlyingConnector
Connector getUnderlyingConnector()
-
getUserId
PlayerId getUserId()
-
getUserInterfaceType
UserInterfaceType getUserInterfaceType()
-
getUserLocale
Locale getUserLocale()
-
getUserPreferences
UserPreferences getUserPreferences()
-
getUserText
String getUserText()
-
getUserTimeline
UserTimeline getUserTimeline()
-
setI18nProvider
Unit setI18nProvider(I18nKeyProvider i18nProvider)
-
setNextUserActionState
Unit setNextUserActionState(NextUserActionState nextUserActionState)
-
-
-
-