Class CustomMessage

  • All Implemented Interfaces:
    ai.tock.bot.api.model.message.bot.BotMessage

    
    public final class CustomMessage
     implements BotMessage
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final ConstrainedValueWrapper<out ConnectorMessage> message
      private final Long delay
    • Constructor Summary

      Constructors 
      Constructor Description
      CustomMessage(ConstrainedValueWrapper<out ConnectorMessage> message, Long delay)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final ConstrainedValueWrapper<out ConnectorMessage> getMessage()
      Long getDelay() The delay to wait before sending this message.
      • Methods inherited from class java.lang.Object

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

      • CustomMessage

        CustomMessage(ConstrainedValueWrapper<out ConnectorMessage> message, Long delay)
    • Method Detail

      • getMessage

         final ConstrainedValueWrapper<out ConnectorMessage> getMessage()
      • getDelay

         Long getDelay()

        The delay to wait before sending this message.