クラス PostbackEvent

java.lang.Object
com.linecorp.bot.model.event.PostbackEvent
すべての実装されたインタフェース:
Event, ReplyEvent

public final class PostbackEvent
extends java.lang.Object
implements Event, ReplyEvent
Event object for when a user performs an action on a template message which initiates a postback. You can reply to postback events.
  • メソッドの詳細

    • builder

      public static PostbackEvent.PostbackEventBuilder builder()
    • toBuilder

    • getReplyToken

      public java.lang.String getReplyToken()
      Token for replying to this event.
      定義:
      getReplyToken インタフェース内 ReplyEvent
      関連項目:
      ReplyMessage, Sample request Body
    • getSource

      public Source getSource()
      JSON object which contains the source of the event.
      定義:
      getSource インタフェース内 Event
    • getPostbackContent

      public PostbackContent getPostbackContent()
      Content of the postback event.
    • getTimestamp

      public java.time.Instant getTimestamp()
      Time of the event.
      定義:
      getTimestamp インタフェース内 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.
      定義:
      getMode インタフェース内 Event
    • equals

      public boolean equals​(java.lang.Object o)
      オーバーライド:
      equals クラス内 java.lang.Object
    • hashCode

      public int hashCode()
      オーバーライド:
      hashCode クラス内 java.lang.Object
    • toString

      public java.lang.String toString()
      オーバーライド:
      toString クラス内 java.lang.Object