Package ai.tock.bot.definition
Interface StoryHandlerListener
-
- All Implemented Interfaces:
public interface StoryHandlerListenerTo listen before and after action handling. Need to be registered using ai.tock.bot.engine.BotRepository.registerStoryHandlerListener.
-
-
Method Summary
Modifier and Type Method Description BooleanstartAction(BotBus botBus, StoryHandler handler)Called before StoryHandler.handle. UnitendAction(BotBus botBus, StoryHandler handler)Called when StoryHandler handling is over. -
-
Method Detail
-
startAction
Boolean startAction(BotBus botBus, StoryHandler handler)
Called before StoryHandler.handle. If it returns false, the StoryHandlerListeners registered after this listener and the StoryHandler are not called. (however endAction of each StoryHandlerListener is called].
-
endAction
Unit endAction(BotBus botBus, StoryHandler handler)
Called when StoryHandler handling is over.
-
-
-
-