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

esendex.sdk.java.service.SentService 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 esendex.sdk.java.EsendexException;
import esendex.sdk.java.model.domain.response.SentMessageCollectionResponse;
import esendex.sdk.java.model.domain.response.SentMessageResponse;

/**
 * A SentService is a service for querying Sent messages. 
 * All methods throw an EsendexException to indicate either a problem during 
 * the underlying connection or there was a none okay response. 
 */
public interface SentService {

	/**
	 * Gets the message.
	 * @param id the id
	 * @return the message
	 * @throws EsendexException the esendex exception
	 */
	SentMessageResponse getMessage(String id) throws EsendexException;

	/**
	 * Gets the messages.
	 * @param pageNumber the page number
	 * @param pageSize the page size
	 * @return the messages
	 * @throws EsendexException the esendex exception
	 */
	SentMessageCollectionResponse getMessages(int pageNumber, int pageSize)
			throws EsendexException;

	/**
	 * Gets the messages.
	 * @param account the account
	 * @param pageNumber the page number
	 * @param pageSize the page size
	 * @return the messages
	 * @throws EsendexException the esendex exception
	 */
	SentMessageCollectionResponse getMessages(String account, int pageNumber,
			int pageSize) throws EsendexException;

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy