Package com.mailosaur.models
Class Message
java.lang.Object
com.mailosaur.models.BaseModel
com.mailosaur.models.Message
The email or SMS message processed by Mailosaur.
-
Constructor Summary
ConstructorsConstructorDescriptionMessage()Message(String type, List<MessageAddress> from, List<MessageAddress> to, String subject, String server, com.google.api.client.util.DateTime received) This constructor used for Mailosaur library tests only -
Method Summary
Modifier and TypeMethodDescriptionGets an array of attachment metadata for any attached files.bcc()Gets the blind carbon-copied recipients for email messages.cc()Gets the carbon-copied recipients for email messages.from()Gets the sender of the message.html()Gets the message content that was sent in HTML format.id()Gets the unique identifier for the message.metadata()Gets further metadata related to the message, including email headers.com.google.api.client.util.DateTimereceived()Gets the date/time that this message was received by Mailosaur.server()Gets the identifier for the server in which the message is located.subject()Gets the subject of the message.text()Gets the message content that was sent in plain text format.to()Gets the recipients of the message.type()Gets the type of message.Methods inherited from class com.mailosaur.models.BaseModel
nullableString
-
Constructor Details
-
Message
public Message() -
Message
public Message(String type, List<MessageAddress> from, List<MessageAddress> to, String subject, String server, com.google.api.client.util.DateTime received) This constructor used for Mailosaur library tests only
-
-
Method Details
-
id
Gets the unique identifier for the message.- Returns:
- The unique identifier for the message.
-
type
Gets the type of message.- Returns:
- The type of message.
-
from
Gets the sender of the message.- Returns:
- The sender of the message.
-
to
Gets the recipients of the message.- Returns:
- The recipients of the message.
-
cc
Gets the carbon-copied recipients for email messages.- Returns:
- Carbon-copied recipients for email messages.
-
bcc
Gets the blind carbon-copied recipients for email messages.- Returns:
- Blind carbon-copied recipients for email messages.
-
received
public com.google.api.client.util.DateTime received()Gets the date/time that this message was received by Mailosaur.- Returns:
- The date/time that this message was received by Mailosaur.
-
subject
Gets the subject of the message.- Returns:
- The subject of the message.
-
html
Gets the message content that was sent in HTML format.- Returns:
- Message content that was sent in HTML format.
-
text
Gets the message content that was sent in plain text format.- Returns:
- Message content that was sent in plain text format.
-
attachments
Gets an array of attachment metadata for any attached files.- Returns:
- An array of attachment metadata for any attached files.
-
metadata
Gets further metadata related to the message, including email headers.- Returns:
- Further metadata related to the message, including email headers.
-
server
Gets the identifier for the server in which the message is located.- Returns:
- Identifier for the server in which the message is located.
-