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

esendex.sdk.java.model.domain.request.ContactRequest Maven / Gradle / Ivy


package esendex.sdk.java.model.domain.request;

import esendex.sdk.java.model.domain.impl.BaseContact;
import esendex.sdk.java.model.types.ContactType;

/**
 * A request object suitable for creating and updating a Contact resource.
 * @author Mike Whittaker
 */
public class ContactRequest extends BaseContact {

	/**
	 * Creates a ContactRequest with the mandatory fields of quickname and
	 * mobile number.
	 * @param quickName the quickname
	 * @param mobileNumber the mobile number
	 */
	public ContactRequest(String quickName, String mobileNumber) {
		if (quickName == null || mobileNumber == null) 
			throw new NullPointerException("arguments can not be null");

		setQuickName(quickName);
		setMobileNumber(mobileNumber);
		setType(ContactType.ESENDEX);
	}
	
	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setFirstName(String firstName) {
		super.setFirstName(firstName);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setId(String id) {
		super.setId(id);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setLastName(String lastName) {
		super.setLastName(lastName);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setMobileNumber(String mobileNumber) {
		super.setMobileNumber(mobileNumber);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setQuickName(String quickName) {
		super.setQuickName(quickName);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setType(ContactType type) {
		super.setType(type);
	}

	/** 
	 * {@inheritDoc}
	 */
	@Override
	public void setConcurrencyId(String concurrencyId) {
		super.setConcurrencyId(concurrencyId);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy