Table of Contents

Constructor BrowsedThread

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

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

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

public BrowsedThread(EmailThreadId ThreadId, IReadOnlyList<BrowsedThreadEmail> Messages, IReadOnlyList<ThreadParticipant> Participants, int MessageCount, bool MoreMessagesNotAssembled, bool MoreParticipantsNotNamed, string? NextCursor, int PageSize)

Parameters

ThreadId EmailThreadId

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

Messages IReadOnlyList<BrowsedThreadEmail>

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

Participants IReadOnlyList<ThreadParticipant>

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

MessageCount int

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

MoreMessagesNotAssembled bool

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

MoreParticipantsNotNamed bool

Whether the conversation holds authors this list does not name.

NextCursor string

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

PageSize int

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

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.