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

esendex.sdk.java.model.transfer.contact.ContactCollectionDto Maven / Gradle / Ivy

Go to download

The Esendex Java SDK is an easy to use client for our REST API that you can use to integrate SMS and Voice messaging into your Java application.

The newest version!

package esendex.sdk.java.model.transfer.contact;

import java.util.ArrayList;
import java.util.List;

import esendex.sdk.java.model.transfer.PageableDto;
import esendex.sdk.java.model.transfer.contact.ContactDto;

// TODO: Auto-generated Javadoc
/**
 * The response from certain services containing a collection of
 * ContactResponse.
 * @author Mike Whittaker
 */
public class ContactCollectionDto extends PageableDto {
	
	private List contacts;
	
	private Object readResolve() {
		if (contacts == null) contacts = new ArrayList();
		return this;
	}
	
	public ContactCollectionDto() {
	}
	
	/**
	 * Creates a ContactCollectionDto populated with a List of
	 * ContactDtos.
	 * @param contacts the List of contacts
	 */
	public ContactCollectionDto(List contacts) {
		this.contacts = contacts;
	}

	/**
	 * Gets the contacts.
	 * @return the contacts
	 */
	public List getContacts() {
		return contacts;
	}
	
	public void setContacts(List contacts) {
		this.contacts = contacts;
	}
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public String toString() {
		return super.toString() + "\n" + contacts;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy