Class Button

java.lang.Object
com.whatsapp.api.domain.messages.Button

public class Button extends Object

Required for Reply Buttons.

A button object can contain the following parameters:

  • type: only supported type is reply
  • reply: required for Reply Buttons

You can have up to 3 buttons. You cannot have leading or trailing spaces when setting the ID.

  • Field Details

    • type

      public ButtonType type
      The Type.
    • reply

      public Reply reply
      The Reply.
  • Constructor Details

    • Button

      public Button()
  • 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
    • getReply

      public Reply getReply()
      Gets reply.
      Returns:
      the reply
    • setReply

      public Button setReply(Reply reply)
      Sets reply.
      Parameters:
      reply - the reply
      Returns:
      the reply