Record Class MailpitMessagesSummary
java.lang.Object
java.lang.Record
io.micronaut.email.mailpit.client.model.MailpitMessagesSummary
- Record Components:
total- Total mailbox messages.unread- Total unread mailbox messages.count- Legacy current page message count.messagesCount- Total messages matching the current query.messagesUnread- Total unread messages matching the current query.start- Pagination offset.- All current tags.messages- Message summaries.
public record MailpitMessagesSummary(long total, long unread, long count, long messagesCount, long messagesUnread, int start, @Nullable List<String> tags, @Nullable List<MailpitMessageSummary> messages)
extends Record
Mailpit message list response.
- Since:
- 3.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionMailpitMessagesSummary(long total, long unread, long count, long messagesCount, long messagesUnread, int start, @Nullable List<String> tags, @Nullable List<MailpitMessageSummary> messages) Creates an instance of aMailpitMessagesSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongcount()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable List<MailpitMessageSummary> messages()Returns the value of themessagesrecord component.longReturns the value of themessagesCountrecord component.longReturns the value of themessagesUnreadrecord component.intstart()Returns the value of thestartrecord component.tags()Returns the value of thetagsrecord component.final StringtoString()Returns a string representation of this record class.longtotal()Returns the value of thetotalrecord component.longunread()Returns the value of theunreadrecord component.
-
Constructor Details
-
MailpitMessagesSummary
public MailpitMessagesSummary(long total, long unread, long count, long messagesCount, long messagesUnread, int start, @Nullable List<String> tags, @Nullable List<MailpitMessageSummary> messages) Creates an instance of aMailpitMessagesSummaryrecord class.- Parameters:
total- the value for thetotalrecord componentunread- the value for theunreadrecord componentcount- the value for thecountrecord componentmessagesCount- the value for themessagesCountrecord componentmessagesUnread- the value for themessagesUnreadrecord componentstart- the value for thestartrecord componenttags- the value for thetagsrecord componentmessages- the value for themessagesrecord 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. -
total
-
unread
-
count
-
messagesCount
public long messagesCount()Returns the value of themessagesCountrecord component.- Returns:
- the value of the
messagesCountrecord component
-
messagesUnread
public long messagesUnread()Returns the value of themessagesUnreadrecord component.- Returns:
- the value of the
messagesUnreadrecord component
-
start
-
tags
-
messages
-