Class PhoneNumberButton

java.lang.Object
com.whatsapp.api.domain.templates.Button
com.whatsapp.api.domain.templates.PhoneNumberButton

public class PhoneNumberButton extends Button
The type Phone number button.
  • Constructor Details

    • PhoneNumberButton

      public PhoneNumberButton(String text, String phoneNumber)
      Instantiates a new Phone number button.
      Parameters:
      text - the text
    • PhoneNumberButton

      public PhoneNumberButton()
      Instantiates a new Phone number button.
  • Method Details

    • getPhoneNumber

      public String getPhoneNumber()
      Gets phone number.
      Returns:
      the phone number
    • setPhoneNumber

      public PhoneNumberButton setPhoneNumber(String phoneNumber)
      Sets phone number.
      Parameters:
      phoneNumber - the phone number
      Returns:
      the phone number