esendex.sdk.java.service.MessagingService 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.service;
import java.util.Date;
import esendex.sdk.java.EsendexException;
import esendex.sdk.java.model.domain.request.SmsMessageCollectionRequest;
import esendex.sdk.java.model.domain.request.SmsMessageRequest;
import esendex.sdk.java.model.domain.request.VoiceMessageCollectionRequest;
import esendex.sdk.java.model.domain.request.VoiceMessageRequest;
import esendex.sdk.java.model.domain.response.MessageResultResponse;
/**
* A MessagingService is a service for sending SMS or voice messages.
* 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 MessagingService {
MessageResultResponse sendMessage(String account, SmsMessageRequest message)
throws EsendexException;
MessageResultResponse sendMessage(String account, VoiceMessageRequest message)
throws EsendexException;
MessageResultResponse sendMessages(SmsMessageCollectionRequest messages)
throws EsendexException;
MessageResultResponse sendMessages(VoiceMessageCollectionRequest messages)
throws EsendexException;
MessageResultResponse sendScheduledMessage(String account, SmsMessageRequest message, Date sendAt)
throws EsendexException;
MessageResultResponse sendScheduledMessage(String account, VoiceMessageRequest message, Date sendAt)
throws EsendexException;
MessageResultResponse sendScheduledMessages(SmsMessageCollectionRequest messages, Date sendAt)
throws EsendexException;
MessageResultResponse sendScheduledMessages(VoiceMessageCollectionRequest messages, Date sendAt)
throws EsendexException;
}