Class InboundMessagesImpl

All Implemented Interfaces:
InboundMessages

public class InboundMessagesImpl extends ApiResourceWithValidation implements InboundMessages
  • Constructor Details

  • Method Details

    • list

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

      public InboundMessage get(long inboxId, String messageId)
      Description copied from interface: InboundMessages
      Get a single message with its body and attachment download URLs.
      Specified by:
      get in interface InboundMessages
      Parameters:
      inboxId - the inbox ID
      messageId - the message ID
      Returns:
      the message
    • delete

      public void delete(long inboxId, String messageId)
      Description copied from interface: InboundMessages
      Delete a message.
      Specified by:
      delete in interface InboundMessages
      Parameters:
      inboxId - the inbox ID
      messageId - the message ID
    • reply

      public InboundSendResult reply(long inboxId, String messageId, InboundReplyRequest request)
      Description copied from interface: InboundMessages
      Reply to a message (to the original sender). Sends a real email.
      Specified by:
      reply in interface InboundMessages
      Parameters:
      inboxId - the inbox ID
      messageId - the message ID
      request - the reply body
      Returns:
      the send result
    • replyAll

      public InboundSendResult replyAll(long inboxId, String messageId, InboundReplyRequest request)
      Description copied from interface: InboundMessages
      Reply to a message and copy the original's other recipients. Sends a real email.
      Specified by:
      replyAll in interface InboundMessages
      Parameters:
      inboxId - the inbox ID
      messageId - the message ID
      request - the reply body
      Returns:
      the send result
    • forward

      public InboundSendResult forward(long inboxId, String messageId, InboundForwardRequest request)
      Description copied from interface: InboundMessages
      Forward a message to new recipients (at least one to is required). Sends a real email.
      Specified by:
      forward in interface InboundMessages
      Parameters:
      inboxId - the inbox ID
      messageId - the message ID
      request - the forward body
      Returns:
      the send result