Package esendex.sdk.java.service.impl
Class ContactServiceImpl
java.lang.Object
esendex.sdk.java.service.impl.AbstractService
esendex.sdk.java.service.impl.ContactServiceImpl
- All Implemented Interfaces:
ContactService
A concrete ContactService implementation.
- Author:
- Mike Whittaker
-
Field Summary
Fields inherited from class esendex.sdk.java.service.impl.AbstractService
authenticator
-
Constructor Summary
ConstructorsConstructorDescriptionContactServiceImpl
(Authenticator authenticator) Instantiates a new contact service. -
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)
-
Constructor Details
-
ContactServiceImpl
Instantiates a new contact service.- Parameters:
authenticator
- the authenticator
-
-
Method Details
-
createContact
- Specified by:
createContact
in interfaceContactService
- Throws:
EsendexException
-
getContact
- Specified by:
getContact
in interfaceContactService
- Parameters:
id
- the id of the desired contact- Throws:
EsendexException
-
getContacts
public List<ContactResponse> getContacts(int pageNumber, int pageSize, String accountReference) throws EsendexException - Specified by:
getContacts
in interfaceContactService
- Parameters:
pageNumber
- the page numberpageSize
- the page sizeaccountReference
- the accountReference- Throws:
EsendexException
-
updateContact
public ContactResponse updateContact(String id, ContactRequest contactRequest) throws EsendexException - Specified by:
updateContact
in interfaceContactService
- Parameters:
id
- the id of the desired contactcontactRequest
- the contact request object- Throws:
EsendexException
-
deleteContact
- Specified by:
deleteContact
in interfaceContactService
- Parameters:
id
- the id of the desired contact- Throws:
EsendexException
-