All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.optionfactory.whatsapp.dto.messages.Button Maven / Gradle / Ivy

package net.optionfactory.whatsapp.dto.messages;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import net.optionfactory.whatsapp.dto.messages.type.ButtonType;


/**
 * 

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.

*/ @JsonInclude(JsonInclude.Include.NON_NULL) public class Button { /** * The Type. */ @JsonProperty("type") public ButtonType type; /** * The Reply. */ @JsonProperty("reply") public Reply reply; /** * Gets type. * * @return the type */ public ButtonType getType() { return type; } /** * Sets type. * * @param type the type * @return the type */ public Button setType(ButtonType type) { this.type = type; return this; } /** * Gets reply. * * @return the reply */ public Reply getReply() { return reply; } /** * Sets reply. * * @param reply the reply * @return the reply */ public Button setReply(Reply reply) { this.reply = reply; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy