Table of Contents

Class PresentationBlock

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

One typed part of a presentation plan, carrying its own data and its own sources.

[JsonPolymorphic(TypeDiscriminatorPropertyName = "type")]
[JsonDerivedType(typeof(AnswerBlock), "answer")]
[JsonDerivedType(typeof(EvidenceListBlock), "evidenceList")]
[JsonDerivedType(typeof(TimelineBlock), "timeline")]
[JsonDerivedType(typeof(FactTableBlock), "factTable")]
[JsonDerivedType(typeof(PeopleBlock), "people")]
[JsonDerivedType(typeof(ThreadStateBlock), "threadState")]
[JsonDerivedType(typeof(AttachmentGalleryBlock), "attachmentGallery")]
[JsonDerivedType(typeof(DraftBlock), "draft")]
[JsonDerivedType(typeof(EventProposalBlock), "eventProposal")]
[JsonDerivedType(typeof(TaskProposalBlock), "taskProposal")]
[JsonDerivedType(typeof(SuggestedActionBlock), "suggestedAction")]
public abstract record PresentationBlock : IEquatable<PresentationBlock>
Inheritance
PresentationBlock
Implements
Derived
Inherited Members

Remarks

The hierarchy is closed by a private protected constructor, so the eleven derived types declared beside it are the whole of it: nothing outside this assembly can bring a block into being from data. What C# leaves reachable is the copy constructor every non-sealed record has and which the language requires to be protected — a type derived through it can only copy a block this assembly already composed, carries that block's catalogue type, and is refused by the serializer as a derived type the contract never declared. That, and not a review, is what keeps a plan to presentations the client has renderers for.

Every block carries the evidence behind it, so checking a fact means reading one block's sources rather than the whole answer's. And every block carries the version of its own type, taken from the catalogue rather than supplied by whatever composed the plan: a client meeting a version it does not know refuses that block and keeps the rest of the run, and a producer cannot claim a revision it did not write.

Nothing here is markup, a template, an expression, or a reference to code. Text is PresentationText, which refuses to be markup; every other member is a number, a timestamp, an identity, or a value from a closed set. A client draws these with ordinary typed UI and evaluates none of it.

Properties

Evidence

Gets what the correspondence does for what this block states.

ReferencedCitations

Gets every citation this block names, including the ones its own entries name.

Type

Gets which of the catalogued types this block is.

Version

Gets the revision of this block type's contract, which is the catalogue's rather than the producer's.