Package esendex.sdk.java.service
Interface ContactService
- All Known Implementing Classes:
ContactServiceImpl
public interface ContactService
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateContact
(ContactRequest contactRequest) boolean
deleteContact
(String id) getContact
(String id) getContacts
(int pageNumber, int pageSize, String accountReference) updateContact
(String id, ContactRequest contactRequest)
-
Method Details
-
createContact
- Throws:
EsendexException
-
getContact
- Parameters:
id
- the id of the desired contact- Throws:
EsendexException
-
getContacts
List<ContactResponse> getContacts(int pageNumber, int pageSize, String accountReference) throws EsendexException - Parameters:
pageNumber
- the page numberpageSize
- the page sizeaccountReference
- the accountReference- Throws:
EsendexException
-
updateContact
- Parameters:
id
- the id of the desired contactcontactRequest
- the contact request object- Throws:
EsendexException
-
deleteContact
- Parameters:
id
- the id of the desired contact- Throws:
EsendexException
-