Table of Contents

Constructor EmailThreadState

Namespace
MailFathom.Application.Emails.ThreadStates
Assembly
MailFathom.Application.dll

EmailThreadState(EmailThreadId, ThreadStateCoverage, IReadOnlyList<ThreadStateEntry>, ThreadStateRevision, DateTimeOffset, bool)

Where one conversation stands, as this deployment derived it and wrote it down.

public EmailThreadState(EmailThreadId ThreadId, ThreadStateCoverage Coverage, IReadOnlyList<ThreadStateEntry> Entries, ThreadStateRevision DerivedFrom, DateTimeOffset DerivedAt, bool IsCurrent)

Parameters

ThreadId EmailThreadId

The conversation this state is about, which is always the surviving thread of a merge.

Coverage ThreadStateCoverage

How much of the conversation the derivation was shown.

Entries IReadOnlyList<ThreadStateEntry>

What was derived, in the order the producer named it, and empty where there was nothing to say.

DerivedFrom ThreadStateRevision

The shape of the conversation the derivation was made from.

DerivedAt DateTimeOffset

When the derivation ran.

IsCurrent bool

Whether the conversation still has the shape the state was derived from. A state just derived is current by construction; a stored one stops being current the moment a message joins or leaves the conversation, and stays so until a pass derives it again — which can be indefinitely, while the answering allowance is spent. A reader is never shown one that is not as though it were.

Remarks

Derived once and stored, which is the whole of what makes it a part of the application rather than a chat reply somebody has to ask for again. A summary produced on demand and discarded is a message with better placement; a state that is derived, kept, updated when the conversation changes, and cited is an object a screen can be built on and a later stage can read.

A record with no statements at all is a real outcome and not a failure. It says a derivation ran and found nothing to put beside the conversation — two messages arranging a time, a receipt and its acknowledgement — and storing it is what stops the same nothing being paid for again. A conversation no derivation has reached carries no record at all, which is what a client draws as *not derived yet* rather than as *nothing to say*.

It carries no participant list, and that is deliberate rather than missing. Who is taking part in a conversation is something the correspondence states exactly — the authors of its messages — and the thread route already publishes it from the mail itself. Asking a model for it would store a second, worse copy of a fact the mailbox holds, and a screen showing the two side by side would have to decide which one is right.