Package io.mailtrap.api.inbound
Class InboundThreadsImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.inbound.InboundThreadsImpl
- All Implemented Interfaces:
InboundThreads
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a thread.Get a single thread with its messages embedded (oldest first).List conversation threads in an inbox.
-
Constructor Details
-
InboundThreadsImpl
-
-
Method Details
-
list
Description copied from interface:InboundThreadsList conversation threads in an inbox.- Specified by:
listin interfaceInboundThreads- Parameters:
inboxId- the inbox IDlastId- pagination cursor from a previous response (nullfor the first page)- Returns:
- a page of threads
-
get
Description copied from interface:InboundThreadsGet a single thread with its messages embedded (oldest first).- Specified by:
getin interfaceInboundThreads- Parameters:
inboxId- the inbox IDthreadId- the thread ID- Returns:
- the thread
-
delete
Description copied from interface:InboundThreadsDelete a thread.- Specified by:
deletein interfaceInboundThreads- Parameters:
inboxId- the inbox IDthreadId- the thread ID
-