Class ButtonPayloadParameter

java.lang.Object
com.whatsapp.api.domain.messages.Parameter
com.whatsapp.api.domain.messages.ButtonPayloadParameter

public class ButtonPayloadParameter extends Parameter
The type Button payload parameter.
See Also:
  • Constructor Details

    • ButtonPayloadParameter

      public ButtonPayloadParameter()
      Instantiates a new Button payload parameter.
    • ButtonPayloadParameter

      public ButtonPayloadParameter(String payload)
      Instantiates a new Button payload parameter.
      Parameters:
      payload - the payload - Required for quick_reply buttons. Developer-defined payload that is returned when the button is clicked in addition to the display text on the button.
  • Method Details

    • getPayload

      public String getPayload()
      Gets payload.
      Returns:
      the payload
    • setPayload

      public ButtonPayloadParameter setPayload(String payload)
      Sets payload. Required for quick_reply buttons. Developer-defined payload that is returned when the button is clicked in addition to the display text on the button.
      Parameters:
      payload - the payload
      Returns:
      the payload