Package io.mailtrap.api.inbound
Class InboundMessagesImpl
java.lang.Object
io.mailtrap.api.apiresource.ApiResource
io.mailtrap.api.apiresource.ApiResourceWithValidation
io.mailtrap.api.inbound.InboundMessagesImpl
- All Implemented Interfaces:
InboundMessages
-
Field Summary
Fields inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
mailtrapValidatorFields inherited from class io.mailtrap.api.apiresource.ApiResource
apiHost, httpClient, token -
Constructor Summary
ConstructorsConstructorDescriptionInboundMessagesImpl(MailtrapConfig config, MailtrapValidator mailtrapValidator) -
Method Summary
Modifier and TypeMethodDescriptionvoidDelete a message.forward(long inboxId, String messageId, InboundForwardRequest request) Forward a message to new recipients (at least onetois required).Get a single message with its body and attachment download URLs.List received messages in an inbox.reply(long inboxId, String messageId, InboundReplyRequest request) Reply to a message (to the original sender).replyAll(long inboxId, String messageId, InboundReplyRequest request) Reply to a message and copy the original's other recipients.Methods inherited from class io.mailtrap.api.apiresource.ApiResourceWithValidation
validateRequestBodyAndThrowException
-
Constructor Details
-
InboundMessagesImpl
-
-
Method Details
-
list
Description copied from interface:InboundMessagesList received messages in an inbox.- Specified by:
listin interfaceInboundMessages- Parameters:
inboxId- the inbox IDlastId- pagination cursor from a previous response (nullfor the first page)- Returns:
- a page of messages
-
get
Description copied from interface:InboundMessagesGet a single message with its body and attachment download URLs.- Specified by:
getin interfaceInboundMessages- Parameters:
inboxId- the inbox IDmessageId- the message ID- Returns:
- the message
-
delete
Description copied from interface:InboundMessagesDelete a message.- Specified by:
deletein interfaceInboundMessages- Parameters:
inboxId- the inbox IDmessageId- the message ID
-
reply
Description copied from interface:InboundMessagesReply to a message (to the original sender). Sends a real email.- Specified by:
replyin interfaceInboundMessages- Parameters:
inboxId- the inbox IDmessageId- the message IDrequest- the reply body- Returns:
- the send result
-
replyAll
Description copied from interface:InboundMessagesReply to a message and copy the original's other recipients. Sends a real email.- Specified by:
replyAllin interfaceInboundMessages- Parameters:
inboxId- the inbox IDmessageId- the message IDrequest- the reply body- Returns:
- the send result
-
forward
Description copied from interface:InboundMessagesForward a message to new recipients (at least onetois required). Sends a real email.- Specified by:
forwardin interfaceInboundMessages- Parameters:
inboxId- the inbox IDmessageId- the message IDrequest- the forward body- Returns:
- the send result
-