Class InboundThreadsImpl

java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundThreadsImpl
All Implemented Interfaces:
InboundThreads

public class InboundThreadsImpl extends ApiResource implements InboundThreads
  • Constructor Details

    • InboundThreadsImpl

      public InboundThreadsImpl(MailtrapConfig config)
  • Method Details

    • list

      public InboundThreadsListResponse list(long inboxId, String lastId)
      Description copied from interface: InboundThreads
      List conversation threads in an inbox.
      Specified by:
      list in interface InboundThreads
      Parameters:
      inboxId - the inbox ID
      lastId - pagination cursor from a previous response (null for the first page)
      Returns:
      a page of threads
    • get

      public InboundThread get(long inboxId, String threadId)
      Description copied from interface: InboundThreads
      Get a single thread with its messages embedded (oldest first).
      Specified by:
      get in interface InboundThreads
      Parameters:
      inboxId - the inbox ID
      threadId - the thread ID
      Returns:
      the thread
    • delete

      public void delete(long inboxId, String threadId)
      Description copied from interface: InboundThreads
      Delete a thread.
      Specified by:
      delete in interface InboundThreads
      Parameters:
      inboxId - the inbox ID
      threadId - the thread ID