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

net.optionfactory.whatsapp.dto.messages.Email 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.EmailType;

/**
 * Optional
 * 

* Contact email address(es) formatted as an emails object. The object can contain the following fields: *

* - email – Optional. Email address. *

* - type – Optional. Standard values are HOME and WORK. */ @JsonInclude(JsonInclude.Include.NON_NULL) public class Email { @JsonProperty("type") private EmailType type; @JsonProperty("email") private String email; /** * Instantiates a new Email. */ public Email() { } /** * Instantiates a new Email. * * @param type the type. Optional. Standard values are HOME and WORK. * @param email the email */ public Email(EmailType type, String email) { this.type = type; this.email = email; } /** * Gets type. * * @return the type */ public EmailType getType() { return type; } /** * Sets type. * * @param type the type. Optional. Standard values are HOME and WORK. * @return the type */ public Email setType(EmailType type) { this.type = type; return this; } /** * Gets email. * * @return the email */ public String getEmail() { return email; } /** * Sets email. * * @param email the email * @return the email */ public Email setEmail(String email) { this.email = email; return this; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy