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

net.optionfactory.whatsapp.dto.messages.Phone 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.PhoneType;

/**
 * Optional.
 * 

* Contact phone number(s) formatted as a phone object. The object can contain the following fields:

*
    *
  • phone – Optional. Automatically populated with the `wa_id` value as a formatted phone number.
  • *
  • type – Optional. Standard Values are CELL, MAIN, IPHONE, HOME, and WORK.
  • *
  • wa_id – Optional. WhatsApp ID.
  • *
*/ @JsonInclude(JsonInclude.Include.NON_NULL) public class Phone { @JsonProperty("phone") private String phone; @JsonProperty("wa_id") private String waId; @JsonProperty("type") private PhoneType type; /** * Gets phone. * * @return the phone */ public String getPhone() { return phone; } /** * Sets phone. * * @param phone Optional. Automatically populated with the `wa_id` value as a formatted phone number. * @return the phone */ public Phone setPhone(String phone) { this.phone = phone; return this; } /** * Gets wa id. * * @return the wa id */ public String getWaId() { return waId; } /** * Sets wa id. * * @param waId Optional. WhatsApp ID. * @return the wa id */ public Phone setWaId(String waId) { this.waId = waId; return this; } /** * Gets type. * * @return the type */ public PhoneType getType() { return type; } /** * Sets type. * * @param type Optional. Standard Values are CELL, MAIN, IPHONE, HOME, and WORK. * @return the type */ public Phone setType(PhoneType type) { this.type = type; return this; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy