Class MessageEvent<T extends MessageContent>

  • All Implemented Interfaces:
    Event, ReplyEvent

    public final class MessageEvent<T extends MessageContent>
    extends java.lang.Object
    implements Event, ReplyEvent
    Event object which contains the sent message. The message field contains a message object which corresponds with the message type. You can reply to message events.
    • Method Detail

      • getSource

        public Source getSource()
        JSON object which contains the source of the event.
        Specified by:
        getSource in interface Event
      • getMessage

        public T getMessage()
        Message body.
      • getTimestamp

        public java.time.Instant getTimestamp()
        Time of the event.
        Specified by:
        getTimestamp in interface Event
      • getMode

        public EventMode getMode()
        Channel state.
        active
        The channel is active. You can send a reply message or push message from the bot server that received this webhook event.
        standby (under development)
        The channel is waiting. The bot server that received this webhook event shouldn't send any messages.
        Specified by:
        getMode in interface Event
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object