Package io.mailtrap.api.contactlists
Class ContactListsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.contactlists.ContactListsImpl
- All Implemented Interfaces:
ContactLists
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateContactList(long accountId, ContactListRequest request) Create new Contact ListvoiddeleteContactList(long accountId, long contactListId) Delete existing Contact ListfindAll(long accountId) Get all contact lists existing in accountgetContactList(long accountId, long contactListId) Get a contact list by IDupdateContactList(long accountId, long contactListId, ContactListRequest request) Update existing Contact List
-
Constructor Details
-
ContactListsImpl
-
-
Method Details
-
findAll
Description copied from interface:ContactListsGet all contact lists existing in account- Specified by:
findAllin interfaceContactLists- Parameters:
accountId- unique account ID- Returns:
- contacts list
-
createContactList
Description copied from interface:ContactListsCreate new Contact List- Specified by:
createContactListin interfaceContactLists- Parameters:
accountId- unique account IDrequest- body- Returns:
- created contact list
-
getContactList
Description copied from interface:ContactListsGet a contact list by ID- Specified by:
getContactListin interfaceContactLists- Parameters:
accountId- unique account IDcontactListId- unique contact list ID- Returns:
- found contact list
-
updateContactList
public ContactListResponse updateContactList(long accountId, long contactListId, ContactListRequest request) Description copied from interface:ContactListsUpdate existing Contact List- Specified by:
updateContactListin interfaceContactLists- Parameters:
accountId- unique account IDcontactListId- unique contact list IDrequest- body- Returns:
- updated contact list
-
deleteContactList
public void deleteContactList(long accountId, long contactListId) Description copied from interface:ContactListsDelete existing Contact List- Specified by:
deleteContactListin interfaceContactLists- Parameters:
accountId- unique account IDcontactListId- unique contact list ID
-