esendex.sdk.java.model.transfer.contact.ContactCollectionDto Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
Show all versions of org.everit.osgi.bundles.com.esendex.javasdk Show documentation
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;
}
}