Class Button

java.lang.Object
com.whatsapp.api.domain.templates.Button
Direct Known Subclasses:
PhoneNumberButton, QuickReplyButton, UrlButton, VoiceCallButton

public class Button extends Object
The type Button.
  • Constructor Details

    • Button

      protected Button()
      Instantiates a new Button.
    • Button

      protected Button(ButtonType type, String text)
      Instantiates a new Button.
      Parameters:
      type - the type
      text - the text
    • Button

      public Button(ButtonType buttonType)
      Instantiates a new Button.
      Parameters:
      buttonType - the button type
  • Method Details

    • getType

      public ButtonType getType()
      Gets type.
      Returns:
      the type
    • setType

      public Button setType(ButtonType type)
      Sets type.
      Parameters:
      type - the type
      Returns:
      the type
    • getText

      public String getText()
      Gets text.
      Returns:
      the text
    • setText

      public Button setText(String text)
      Sets text.
      Parameters:
      text - the text
      Returns:
      the text