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 - 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 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 a MailpitMessageSummary record class.
      Parameters:
      id - the value for the id record component
      messageId - the value for the messageId record component
      read - the value for the read record component
      from - the value for the from record component
      to - the value for the to record component
      cc - the value for the cc record component
      bcc - the value for the bcc record component
      replyTo - the value for the replyTo record component
      subject - the value for the subject record component
      created - the value for the created record component
      username - the value for the username record component
      tags - the value for the tags record component
      size - the value for the size record component
      attachments - the value for the attachments record component
      snippet - the value for the snippet record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public @Nullable String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • messageId

      public @Nullable String messageId()
      Returns the value of the messageId record component.
      Returns:
      the value of the messageId record component
    • read

      public boolean read()
      Returns the value of the read record component.
      Returns:
      the value of the read record component
    • from

      public @Nullable MailpitAddress from()
      Returns the value of the from record component.
      Returns:
      the value of the from record component
    • to

      public @Nullable List<MailpitAddress> to()
      Returns the value of the to record component.
      Returns:
      the value of the to record component
    • cc

      public @Nullable List<MailpitAddress> cc()
      Returns the value of the cc record component.
      Returns:
      the value of the cc record component
    • bcc

      public @Nullable List<MailpitAddress> bcc()
      Returns the value of the bcc record component.
      Returns:
      the value of the bcc record component
    • replyTo

      public @Nullable List<MailpitAddress> replyTo()
      Returns the value of the replyTo record component.
      Returns:
      the value of the replyTo record component
    • subject

      public @Nullable String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • created

      public @Nullable String created()
      Returns the value of the created record component.
      Returns:
      the value of the created record component
    • username

      public @Nullable String username()
      Returns the value of the username record component.
      Returns:
      the value of the username record component
    • tags

      public @Nullable List<String> tags()
      Returns the value of the tags record component.
      Returns:
      the value of the tags record component
    • size

      public long size()
      Returns the value of the size record component.
      Returns:
      the value of the size record component
    • attachments

      public int attachments()
      Returns the value of the attachments record component.
      Returns:
      the value of the attachments record component
    • snippet

      public @Nullable String snippet()
      Returns the value of the snippet record component.
      Returns:
      the value of the snippet record component