Class BotConfigurationStoryHandlerBase

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String id
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getId() The id of the story.
      Unit handle(BotBus bus) Receive a message from the bus.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BotConfigurationStoryHandlerBase

        BotConfigurationStoryHandlerBase(String id, Function1<BotBus, Unit> handler)
    • Method Detail

      • handle

         Unit handle(BotBus bus)

        Receive a message from the bus.

        Parameters:
        bus - the bus used to get the message and send the answer