Table of Contents

Class BrowsedThread

Namespace
MailFathom.Application.Emails.BrowseThread
Assembly
MailFathom.Application.dll

One page of one conversation, with what the whole of that conversation is.

public sealed record BrowsedThread : IEquatable<BrowsedThread>
Inheritance
BrowsedThread
Implements
Inherited Members

Remarks

Everything outside Messages describes the conversation rather than the page, which is why a client draws a thread header from the first page and never has to hold the rest to keep it accurate. The two counts are of what this caller may see: a message in a folder an operator withheld is in no conversation this surface publishes and in no count of one, because a count including it would report that folder's contents one integer at a time.

Both bounds say when they cut rather than leaving a caller to compare lengths. A conversation longer than MaximumAssembledEmails is assembled that far and says so; a conversation with more authors than MaximumNamedParticipants names that many and says so. Neither is a page boundary — NextCursor is — so a client that walked every page still learns from these that something was cut.

Constructors

BrowsedThread(EmailThreadId, IReadOnlyList<BrowsedThreadEmail>, IReadOnlyList<ThreadParticipant>, int, bool, bool, string?, int)

One page of one conversation, with what the whole of that conversation is.

Fields

MaximumNamedParticipants

The greatest number of authors one conversation's participant list names.

Properties

MessageCount

How many messages the conversation holds of those this caller may see and this read assembled.

Messages

The page's messages, in the conversation's own order.

MoreMessagesNotAssembled

Whether the conversation holds more messages than one read assembles at all.

MoreParticipantsNotNamed

Whether the conversation holds authors this list does not name.

NextCursor

The cursor the following page is asked with, or null at the end of the conversation.

PageSize

How many messages the read ran under, which is what the request asked for or the default it took.

Participants

Everybody who wrote in the assembled conversation, in the order they first wrote in it.

ThreadId

The conversation this is a page of, named by the identifier the request used.