Table of Contents

Class PresentationPlanJsonContext

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

The one serialization path a presentation plan travels, with the readers and writers generated at compile time.

[JsonSourceGenerationOptions(GenerationMode = JsonSourceGenerationMode.Metadata, PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase, UseStringEnumConverter = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, Converters = new Type[] { typeof(StoredEmailIdJsonConverter), typeof(EmailChunkIdJsonConverter), typeof(EmailAddressJsonConverter) })]
[JsonSerializable(typeof(PresentationPlan))]
public sealed class PresentationPlanJsonContext : JsonSerializerContext, IJsonTypeInfoResolver
Inheritance
PresentationPlanJsonContext
Implements
Inherited Members

Remarks

Source-generated rather than reflection-based, because the client at the other end publishes trimmed: a reflection-based reader is removed by the trimmer rather than reported, so the failure would arrive as a screen that works in a debug build and throws in the published one. Declaring the contract's own path here means both ends read and write one shape, and that this file is where a type joining the contract has to be named.

The mode is metadata rather than the default, because the block catalogue and the citation targets are polymorphic and the fast path does not carry a type discriminator. Enums are written as their names for the same reason the two closed enumerations publish an identity: an ordinal means nothing outside this assembly and changes meaning the first time a set is reordered.

The three converters are registered here rather than on the values they convert. A stored email, a passage, and an address are identities this contract publishes in a particular form; how they are written elsewhere is not this contract's decision to take on their behalf.

Constructors

PresentationPlanJsonContext()
PresentationPlanJsonContext(JsonSerializerOptions)

Creates an instance of JsonSerializerContext and binds it with the indicated JsonSerializerOptions.

Properties

AccountCoverage

Defines the source generated JSON serialization contract metadata for a given type.

AnswerBlock

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentAvailability

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

AttachmentGalleryBlock

Defines the source generated JSON serialization contract metadata for a given type.

Boolean

Defines the source generated JSON serialization contract metadata for a given type.

ConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

DateOnly

Defines the source generated JSON serialization contract metadata for a given type.

DateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

Default

The default JsonSerializerContext associated with a default JsonSerializerOptions instance.

Double

Defines the source generated JSON serialization contract metadata for a given type.

DraftBlock

Defines the source generated JSON serialization contract metadata for a given type.

DraftDisposition

Defines the source generated JSON serialization contract metadata for a given type.

EmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

EmailChunkId

Defines the source generated JSON serialization contract metadata for a given type.

EmailCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

EventProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

EvidenceListBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableBlock

Defines the source generated JSON serialization contract metadata for a given type.

FactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

FactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

FactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

FragmentCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

GeneratedSerializerOptions

The source-generated options associated with this context.

Guid

Defines the source generated JSON serialization contract metadata for a given type.

IEnumerablePresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListAccountCoverage

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListAttachmentEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListConflictingClaim

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListEvidenceEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableCell

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableColumn

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListFactTableRow

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationBlock

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationCitation

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListPresentationLimitation

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

IReadOnlyListTimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

Int32

Defines the source generated JSON serialization contract metadata for a given type.

Int64

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateOnly

Defines the source generated JSON serialization contract metadata for a given type.

NullableDateTimeOffset

Defines the source generated JSON serialization contract metadata for a given type.

NullableEmailAddress

Defines the source generated JSON serialization contract metadata for a given type.

NullablePresentationText

Defines the source generated JSON serialization contract metadata for a given type.

NullableUnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

PeopleBlock

Defines the source generated JSON serialization contract metadata for a given type.

PersonEntry

Defines the source generated JSON serialization contract metadata for a given type.

PresentationBlock

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitation

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationId

Defines the source generated JSON serialization contract metadata for a given type.

PresentationCitationTarget

Defines the source generated JSON serialization contract metadata for a given type.

PresentationConfidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationEvidence

Defines the source generated JSON serialization contract metadata for a given type.

PresentationFreshness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationLimitation

Defines the source generated JSON serialization contract metadata for a given type.

PresentationPlan

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSourceMedium

Defines the source generated JSON serialization contract metadata for a given type.

PresentationStaleness

Defines the source generated JSON serialization contract metadata for a given type.

PresentationSupport

Defines the source generated JSON serialization contract metadata for a given type.

PresentationText

Defines the source generated JSON serialization contract metadata for a given type.

StoredEmailId

Defines the source generated JSON serialization contract metadata for a given type.

String

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionBlock

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionImpact

Defines the source generated JSON serialization contract metadata for a given type.

SuggestedActionKind

Defines the source generated JSON serialization contract metadata for a given type.

TaskProposalBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadCommitment

Defines the source generated JSON serialization contract metadata for a given type.

ThreadParticipant

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStateBlock

Defines the source generated JSON serialization contract metadata for a given type.

ThreadStatement

Defines the source generated JSON serialization contract metadata for a given type.

TimelineBlock

Defines the source generated JSON serialization contract metadata for a given type.

TimelineEntry

Defines the source generated JSON serialization contract metadata for a given type.

UnreadableSourceReason

Defines the source generated JSON serialization contract metadata for a given type.

Methods

GetTypeInfo(Type)

Gets metadata for the specified type.