Class UnknownEvent

java.lang.Object
com.linecorp.bot.model.event.UnknownEvent
All Implemented Interfaces:
Event

public final class UnknownEvent extends Object implements Event
Fallback event type for Event.
  • Method Details

    • builder

      public static UnknownEvent.UnknownEventBuilder builder()
    • toBuilder

    • getType

      public String getType()
      Type of the event.
    • getSource

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

      public 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
    • getWebhookEventId

      public String getWebhookEventId()
      Webhook Event ID. An ID that uniquely identifies a webhook event. This is a string in ULID format.
      Specified by:
      getWebhookEventId in interface Event
    • getDeliveryContext

      public DeliveryContext getDeliveryContext()
      Get delivery context.
      Specified by:
      getDeliveryContext in interface Event
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object