クラス PostbackAction

java.lang.Object
com.linecorp.bot.model.action.PostbackAction
すべての実装されたインタフェース:
Action

public final class PostbackAction
extends java.lang.Object
implements Action
Postback's Action.

When this action is tapped, a postback event is returned via webhook with the specified string in the data field.

If you have included the text field, the string in the text field is sent as a message from the user.

  • ネストされたクラスの概要

    ネストされたクラス
    修飾子とタイプ クラス 説明
    static class  PostbackAction.PostbackActionBuilder  
  • コンストラクタの概要

    コンストラクタ
    コンストラクタ 説明
    PostbackAction​(java.lang.String label, java.lang.String data)  
    PostbackAction​(java.lang.String label, java.lang.String data, java.lang.String text)  
    PostbackAction​(java.lang.String label, java.lang.String data, java.lang.String displayText, java.lang.String text)
    Create new instance.
  • メソッドの概要

    修飾子とタイプ メソッド 説明
    static PostbackAction.PostbackActionBuilder builder()  
    boolean equals​(java.lang.Object o)  
    java.lang.String getData()
    String returned via webhook in the postback.data property of the postback event.
    java.lang.String getDisplayText()
    Text sent when the action is performed.
    java.lang.String getLabel()
    Label for the action.
    java.lang.String getText()
    Deprecated.
    int hashCode()  
    java.lang.String toString()  

    クラスから継承されたメソッド java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • コンストラクタの詳細

    • PostbackAction

      public PostbackAction​(java.lang.String label, java.lang.String data, java.lang.String displayText, java.lang.String text)
      Create new instance.
      パラメータ:
      label - Label for the action. Max: 20 characters.
      data - String returned via webhook in the postback.data property of the postback event. Max: 300 characters.
      displayText - text message (optional) Can not be used at the same time with text.
      text - text message (optional) Can not be used at the same time with displayText.
    • PostbackAction

      public PostbackAction​(java.lang.String label, java.lang.String data, java.lang.String text)
    • PostbackAction

      public PostbackAction​(java.lang.String label, java.lang.String data)
  • メソッドの詳細

    • builder

      public static PostbackAction.PostbackActionBuilder builder()
    • getLabel

      public java.lang.String getLabel()
      Label for the action.

      Max: 20 characters

      定義:
      getLabel インタフェース内 Action
    • getData

      public java.lang.String getData()
      String returned via webhook in the postback.data property of the postback event.

      Max: 300 characters

    • getDisplayText

      public java.lang.String getDisplayText()
      Text sent when the action is performed.

      Max: 300 characters

    • getText

      public java.lang.String getText()
      Deprecated. Text sent when the action is performed.

      Max: 300 characters

    • 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