com.mailersend.sdk.Recipient Maven / Gradle / Ivy
/*************************************************
* MailerSend Java SDK
* https://github.com/mailersend/mailersend-java
*
* @author MailerSend
* https://mailersend.com
**************************************************/
package com.mailersend.sdk;
import com.google.gson.annotations.SerializedName;
/**
* Recipient class.
*
* @author john
* @version $Id: $Id
*/
public class Recipient {
@SerializedName("name")
public String name;
@SerializedName("email")
public String email;
/**
* Simple constructor to set the properties
*
* @param name The name of the recipient
* @param email The email of the recipient
*/
public Recipient(String name, String email) {
this.name = name;
this.email = email;
}
/**
* Allow the recipient to be instantiated without forcing the name and email attributes
*/
public Recipient() {
// left empty on purpose
}
}