Record Class MailpitMessageSummary
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitMessageSummary
- Record Components:
id- Database ID.messageId- Message ID.read- Read status.from- From address.to- To addresses.cc- Cc addresses.bcc- Bcc addresses.replyTo- Reply-To addresses.subject- Subject.created- Received date.username- Authentication username.- Tags.size- Size in bytes.attachments- Number of attachments.snippet- Message snippet.
public record MailpitMessageSummary(@Nullable String id, @Nullable String messageId, boolean read, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String subject, @Nullable String created, @Nullable String username, @Nullable List<String> tags, long size, int attachments, @Nullable String snippet)
extends Record
Mailpit message summary.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitMessageSummary(@Nullable String id, @Nullable String messageId, boolean read, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String subject, @Nullable String created, @Nullable String username, @Nullable List<String> tags, long size, int attachments, @Nullable String snippet) Creates an instance of aMailpitMessageSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theattachmentsrecord component.@Nullable List<MailpitAddress> bcc()Returns the value of thebccrecord component.@Nullable List<MailpitAddress> cc()Returns the value of theccrecord component.@Nullable Stringcreated()Returns the value of thecreatedrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable MailpitAddressfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringid()Returns the value of theidrecord component.@Nullable StringReturns the value of themessageIdrecord component.booleanread()Returns the value of thereadrecord component.@Nullable List<MailpitAddress> replyTo()Returns the value of thereplyTorecord component.longsize()Returns the value of thesizerecord component.@Nullable Stringsnippet()Returns the value of thesnippetrecord component.@Nullable Stringsubject()Returns the value of thesubjectrecord component.tags()Returns the value of thetagsrecord component.@Nullable List<MailpitAddress> to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
MailpitMessageSummary
public MailpitMessageSummary(@Nullable String id, @Nullable String messageId, boolean read, @Nullable MailpitAddress from, @Nullable List<MailpitAddress> to, @Nullable List<MailpitAddress> cc, @Nullable List<MailpitAddress> bcc, @Nullable List<MailpitAddress> replyTo, @Nullable String subject, @Nullable String created, @Nullable String username, @Nullable List<String> tags, long size, int attachments, @Nullable String snippet) Creates an instance of aMailpitMessageSummaryrecord class.- Parameters:
id- the value for theidrecord componentmessageId- the value for themessageIdrecord componentread- the value for thereadrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentcc- the value for theccrecord componentbcc- the value for thebccrecord componentreplyTo- the value for thereplyTorecord componentsubject- the value for thesubjectrecord componentcreated- the value for thecreatedrecord componentusername- the value for theusernamerecord componenttags- the value for thetagsrecord componentsize- the value for thesizerecord componentattachments- the value for theattachmentsrecord componentsnippet- the value for thesnippetrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
id
-
messageId
-
read
-
from
-
to
-
cc
-
bcc
-
replyTo
-
subject
-
created
-
username
-
tags
-
size
-
attachments
public int attachments()Returns the value of theattachmentsrecord component.- Returns:
- the value of the
attachmentsrecord component
-
snippet
-