Package ch.aaap.harvestclient.api
Interface ClientContactsApi
- All Superinterfaces:
Api.Create<ClientContact>,Api.Delete<ClientContact>,Api.Get<ClientContact>,Api.Simple<ClientContact>
- All Known Implementing Classes:
ClientContactsApiImpl
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptioncreate(ClientContact clientContactCreationInfo) Create a new ClientContact according to given creation information.voiddelete(Reference<ClientContact> clientContactReference) Delete an existing ClientContact.get(Reference<ClientContact> clientContactReference) list(ClientContactFilter filter) Return a list of clientContacts, sorted by creation date, newest first.list(ClientContactFilter filter, int page, int perPage) Return a list of clientContacts, sorted by creation date, newest first.update(Reference<ClientContact> clientContactReference, ClientContactUpdateInfo toChange) Updates an existing ClientContact with the properties set in ClientContactUpdateInfo
-
Method Details
-
list
Return a list of clientContacts, sorted by creation date, newest first. Use the filter object to filter the list.- Parameters:
filter- filtering options- Returns:
- a (filtered) list of ClientContacts
-
list
Return a list of clientContacts, sorted by creation date, newest first. Use the filter object to filter the list. Page and perPage allow controlling how many results to return.- Parameters:
filter- filtering optionspage- the page numberperPage- how many results to return for one page. Max 100- Returns:
- a (filtered) list of ClientContacts
-
get
- Specified by:
getin interfaceApi.Get<ClientContact>- Parameters:
clientContactReference- a reference to an existing ClientContact- Returns:
- Return a full ClientContact object
-
create
Create a new ClientContact according to given creation information.- Specified by:
createin interfaceApi.Create<ClientContact>- Parameters:
clientContactCreationInfo- the creation options- Returns:
- the newly created ClientContact
-
update
ClientContact update(Reference<ClientContact> clientContactReference, ClientContactUpdateInfo toChange) Updates an existing ClientContact with the properties set in ClientContactUpdateInfo- Parameters:
clientContactReference- the existing clientContact to be updatedtoChange- the properties to be updated- Returns:
- the updated ClientContact
-
delete
Delete an existing ClientContact.- Specified by:
deletein interfaceApi.Delete<ClientContact>- Parameters:
clientContactReference- a reference to an existing ClientContact to be deleted
-