Table of Contents

Class PresentationEvidence

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

What the correspondence does for one block: which sources it rests on, and how far they carry it.

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

Remarks

Every block carries one of these, which is what makes citation part of the contract rather than a habit a producer may keep. The constructor holds the support to what gives it meaning: a supported claim names at least one source, a stale one names at least one and carries a freshness saying the local copy is behind, a conflicting one names at least two sources and both sides of the disagreement — a disagreement needs two sides — and an unsupported one names none, because a source that backed it would make it supported.

That rule is the reason the type exists rather than four loose properties on each block. A block asserting support while citing nothing is exactly the failure a citation contract is written to prevent, and it is far cheaper to refuse it here than to find it in a rendered answer.

Constructors

PresentationEvidence(PresentationSupport, IReadOnlyList<PresentationCitationId>, PresentationFreshness, IReadOnlyList<ConflictingClaim>?)

Initializes what the correspondence does for one block.

Fields

MaxCitations

The greatest number of citations one block may rest on.

MaxConflictingClaims

The greatest number of sides one disagreement may be presented as.

Properties

Citations

Gets the sources the block rests on, in the order they are worth reading.

ConflictingClaims

Gets the sides of the disagreement, which is empty for every support but Conflicting.

Freshness

Gets how current the data behind the block was.

Support

Gets what the correspondence does for what the block states.

Methods

Conflicting(IReadOnlyList<PresentationCitationId>, PresentationFreshness, IReadOnlyList<ConflictingClaim>)

States that the cited sources disagree, and what each side of the disagreement says.

Unsupported(PresentationFreshness)

States that nothing found backs what a block says.