Class Reply

  • All Implemented Interfaces:
    Action

    public class Reply
    extends java.lang.Object
    implements Action
    Reply
    • Field Detail

      • JSON_PROPERTY_TYPE

        public static final java.lang.String JSON_PROPERTY_TYPE
        See Also:
        Constant Field Values
      • JSON_PROPERTY_TEXT

        public static final java.lang.String JSON_PROPERTY_TEXT
        See Also:
        Constant Field Values
      • JSON_PROPERTY_PAYLOAD

        public static final java.lang.String JSON_PROPERTY_PAYLOAD
        See Also:
        Constant Field Values
      • JSON_PROPERTY_METADATA

        public static final java.lang.String JSON_PROPERTY_METADATA
        See Also:
        Constant Field Values
      • JSON_PROPERTY_ICON_URL

        public static final java.lang.String JSON_PROPERTY_ICON_URL
        See Also:
        Constant Field Values
    • Constructor Detail

      • Reply

        public Reply()
    • Method Detail

      • type

        public Reply type​(java.lang.String type)
      • getType

        public java.lang.String getType()
        The type of action.
        Specified by:
        getType in interface Action
        Returns:
        type
      • setType

        public void setType​(java.lang.String type)
      • text

        public Reply text​(java.lang.String text)
      • getText

        public java.lang.String getText()
        The button text. We recommend a non-empty value because some channels may not support empty ones. Text longer than 20 characters will be truncated on Facebook Messenger, and longer than 40 characters will be truncated on Web Messenger, iOS, and Android.
        Returns:
        text
      • setText

        public void setText​(java.lang.String text)
      • payload

        public Reply payload​(java.lang.String payload)
      • getPayload

        public java.lang.String getPayload()
        A string payload to help you identify the action context. Used when posting the reply. You can also use metadata for more complex needs.
        Returns:
        payload
      • setPayload

        public void setPayload​(java.lang.String payload)
      • metadata

        public Reply metadata​(java.lang.Object metadata)
      • getMetadata

        @Nullable
        public java.lang.Object getMetadata()
        Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.
        Returns:
        metadata
      • getMetadata_JsonNullable

        public org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> getMetadata_JsonNullable()
      • setMetadata_JsonNullable

        public void setMetadata_JsonNullable​(org.openapitools.jackson.nullable.JsonNullable<java.lang.Object> metadata)
      • setMetadata

        public void setMetadata​(java.lang.Object metadata)
      • iconUrl

        public Reply iconUrl​(java.lang.String iconUrl)
      • getIconUrl

        @Nullable
        public java.lang.String getIconUrl()
        An icon to render next to the reply option.
        Returns:
        iconUrl
      • setIconUrl

        public void setIconUrl​(java.lang.String iconUrl)
      • 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