Package esendex.sdk.java.service.impl
Class SentServiceImpl
java.lang.Object
esendex.sdk.java.service.impl.AbstractService
esendex.sdk.java.service.impl.SentServiceImpl
- All Implemented Interfaces:
SentService
A concrete implementation of SentService
- Author:
- Mike Whittaker
-
Field Summary
Fields inherited from class esendex.sdk.java.service.impl.AbstractService
authenticator
-
Constructor Summary
ConstructorsConstructorDescriptionSentServiceImpl
(Authenticator authenticator) Instantiates a new sent service -
Method Summary
Modifier and TypeMethodDescriptiongetMessage
(String id) Gets the message.getMessages
(int pageNumber, int pageSize) Gets the messages.getMessages
(String account, int pageNumber, int pageSize) Gets the messages.
-
Constructor Details
-
SentServiceImpl
Instantiates a new sent service- Parameters:
authenticator
- the authenticator
-
-
Method Details
-
getMessage
Gets the message.- Specified by:
getMessage
in interfaceSentService
- Parameters:
id
- the id- Returns:
- the message
- Throws:
EsendexException
- the esendex exception
-
getMessages
public SentMessageCollectionResponse getMessages(int pageNumber, int pageSize) throws EsendexException Gets the messages.- Specified by:
getMessages
in interfaceSentService
- Parameters:
pageNumber
- the page numberpageSize
- the page size- Returns:
- the messages
- Throws:
EsendexException
- the esendex exception
-
getMessages
public SentMessageCollectionResponse getMessages(String account, int pageNumber, int pageSize) throws EsendexException Gets the messages.- Specified by:
getMessages
in interfaceSentService
- Parameters:
account
- the accountpageNumber
- the page numberpageSize
- the page size- Returns:
- the messages
- Throws:
EsendexException
- the esendex exception
-