Class ContactListsImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.contactlists.ContactListsImpl
All Implemented Interfaces:
ContactLists

public class ContactListsImpl extends ApiResource implements ContactLists
  • Constructor Details

  • Method Details

    • findAll

      public List<ContactListResponse> findAll(long accountId)
      Description copied from interface: ContactLists
      Get all contact lists existing in account
      Specified by:
      findAll in interface ContactLists
      Parameters:
      accountId - unique account ID
      Returns:
      contacts list
    • createContactList

      public ContactListResponse createContactList(long accountId, ContactListRequest request)
      Description copied from interface: ContactLists
      Create new Contact List
      Specified by:
      createContactList in interface ContactLists
      Parameters:
      accountId - unique account ID
      request - body
      Returns:
      created contact list
    • getContactList

      public ContactListResponse getContactList(long accountId, long contactListId)
      Description copied from interface: ContactLists
      Get a contact list by ID
      Specified by:
      getContactList in interface ContactLists
      Parameters:
      accountId - unique account ID
      contactListId - unique contact list ID
      Returns:
      found contact list
    • updateContactList

      public ContactListResponse updateContactList(long accountId, long contactListId, ContactListRequest request)
      Description copied from interface: ContactLists
      Update existing Contact List
      Specified by:
      updateContactList in interface ContactLists
      Parameters:
      accountId - unique account ID
      contactListId - unique contact list ID
      request - body
      Returns:
      updated contact list
    • deleteContactList

      public void deleteContactList(long accountId, long contactListId)
      Description copied from interface: ContactLists
      Delete existing Contact List
      Specified by:
      deleteContactList in interface ContactLists
      Parameters:
      accountId - unique account ID
      contactListId - unique contact list ID