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

esendex.sdk.java.service.ContactService 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.service;

import java.util.List;

import esendex.sdk.java.EsendexException;
import esendex.sdk.java.model.domain.request.ContactRequest;
import esendex.sdk.java.model.domain.response.ContactResponse;

/**
 * A ContactService is a service for creating, retrieving, updating and deleting
 * contact resources. All methods throw an EsendexException to indicate either 
 * a problem during the underlying connection or there was a none okay response. 
 * 
 * @author Mike Whittaker
 */
public interface ContactService {

	ContactResponse createContact(ContactRequest contactRequest) throws EsendexException;

	boolean createContacts(List contactRequests) throws EsendexException;

	ContactResponse getContact(String id) throws EsendexException;

	List getContacts(int pageNumber, int pageSize) throws EsendexException;

	ContactResponse updateContact(String id, ContactRequest contactRequest) throws EsendexException;

	boolean deleteContact(String id) throws EsendexException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy