Package software.xdev.mailpit.model
Class MessageSummary
java.lang.Object
software.xdev.mailpit.model.MessageSummary
MessageSummary struct for frontend messages
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBccItem(Address bccItem) addReplyToItem(Address replyToItem) addTagsItem(String tagsItem) attachments(Long attachments) created(OffsetDateTime created) booleanWhether the message has any attachmentsgetBcc()Bcc addressesgetCc()Cc addressesReceived RFC3339Nano date & time ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)getFrom()Get fromgetID()Database IDMessage IDgetRead()Read statusReply-To addressgetSize()Message size in bytes (total)Message snippet includes up to 250 charactersEmail subjectgetTags()Message tagsgetTo()To addressUsername used for authentication (if provided) with the SMTP or Send APIinthashCode()voidsetAttachments(Long attachments) voidvoidvoidsetCreated(OffsetDateTime created) voidvoidvoidsetMessageID(String messageID) voidvoidsetReplyTo(List<Address> replyTo) voidvoidsetSnippet(String snippet) voidsetSubject(String subject) voidvoidvoidsetUsername(String username) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ATTACHMENTS
- See Also:
-
JSON_PROPERTY_BCC
- See Also:
-
JSON_PROPERTY_CC
- See Also:
-
JSON_PROPERTY_CREATED
- See Also:
-
JSON_PROPERTY_FROM
- See Also:
-
JSON_PROPERTY_I_D
- See Also:
-
JSON_PROPERTY_MESSAGE_I_D
- See Also:
-
JSON_PROPERTY_READ
- See Also:
-
JSON_PROPERTY_REPLY_TO
- See Also:
-
JSON_PROPERTY_SIZE
- See Also:
-
JSON_PROPERTY_SNIPPET
- See Also:
-
JSON_PROPERTY_SUBJECT
- See Also:
-
JSON_PROPERTY_TAGS
- See Also:
-
JSON_PROPERTY_TO
- See Also:
-
JSON_PROPERTY_USERNAME
- See Also:
-
-
Constructor Details
-
MessageSummary
public MessageSummary()
-
-
Method Details
-
attachments
-
getAttachments
Whether the message has any attachments- Returns:
- attachments
-
setAttachments
-
bcc
-
addBccItem
-
getBcc
Bcc addresses- Returns:
- bcc
-
setBcc
-
cc
-
addCcItem
-
getCc
Cc addresses- Returns:
- cc
-
setCc
-
created
-
getCreated
Received RFC3339Nano date & time ([extended RFC3339](https://tools.ietf.org/html/rfc3339#section-5.6) format with optional nano seconds)- Returns:
- created
-
setCreated
-
from
-
getFrom
Get from- Returns:
- from
-
setFrom
-
ID
-
getID
Database ID- Returns:
- ID
-
setID
-
messageID
-
getMessageID
Message ID- Returns:
- messageID
-
setMessageID
-
read
-
getRead
Read status- Returns:
- read
-
setRead
-
replyTo
-
addReplyToItem
-
getReplyTo
Reply-To address- Returns:
- replyTo
-
setReplyTo
-
size
-
getSize
Message size in bytes (total)- Returns:
- size
-
setSize
-
snippet
-
getSnippet
Message snippet includes up to 250 characters- Returns:
- snippet
-
setSnippet
-
subject
-
getSubject
Email subject- Returns:
- subject
-
setSubject
-
tags
-
addTagsItem
-
getTags
Message tags- Returns:
- tags
-
setTags
-
to
-
addToItem
-
getTo
To address- Returns:
- to
-
setTo
-
username
-
getUsername
Username used for authentication (if provided) with the SMTP or Send API- Returns:
- username
-
setUsername
-
equals
-
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-