Package twitter4j.v1

Class QuickReply

java.lang.Object
twitter4j.v1.QuickReply
All Implemented Interfaces:
Serializable

public final class QuickReply extends Object implements Serializable
Quick reply
See Also:
  • Field Details

    • label

      public final String label
      label
    • description

      public final String description
      description
    • metadata

      public final String metadata
      metadata
  • Method Details

    • of

      public static QuickReply of(String label, String description, String metadata)
      constructs a new quick reply inctance
      Parameters:
      label - The text label displayed on the button face. Label text is returned as the user’s message response. String, max length of 36 characters including spaces. Values with URLs are not allowed and will return an error.
      description - Optional description text displayed under label text. All options must have this property defined if property is present in any option. Text is auto-wrapped and will display on a max of two lines and supports n for controling line breaks. Description text is not include in the user’s message response. String, max length of 72 characters including spaces.
      metadata - Metadata that will be sent back in the webhook request. String, max length of 1,000 characters including spaces.
      Returns:
      QuickReply
    • 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