Table of Contents

Class PresentationCitationTarget

Namespace
MailFathom.Application.Discovery.Presentation.Citations
Assembly
MailFathom.Application.dll

What one citation resolves to: an email, one passage of an email, or one of its attachments.

[JsonPolymorphic(TypeDiscriminatorPropertyName = "kind")]
[JsonDerivedType(typeof(EmailCitationTarget), "email")]
[JsonDerivedType(typeof(FragmentCitationTarget), "fragment")]
[JsonDerivedType(typeof(AttachmentCitationTarget), "attachment")]
public abstract record PresentationCitationTarget : IEquatable<PresentationCitationTarget>
Inheritance
PresentationCitationTarget
Implements
Derived
Inherited Members

Remarks

Three targets and no fourth. The hierarchy is closed by a private protected constructor, so a target outside this file cannot be declared even from another assembly, and every one of the three names something a reader can be taken to. A citation that resolved to a search, a score, or a paraphrase would be a fact resting on the assistant's own working rather than on the correspondence, which is the whole thing a citation exists to rule out.

The email is named by its local identity rather than by its remote occurrence, because a citation is followed inside this deployment and an occurrence moves when a folder is renamed or a mailbox is rebuilt.

Properties

Email

Gets the email the citation is followed to, whichever of the three the target is.