Struct PresentationBlockType
- Namespace
- MailFathom.Application.Discovery.Presentation
- Assembly
- MailFathom.Application.dll
The closed catalogue of block types a presentation plan may hold.
[JsonConverter(typeof(PresentationBlockTypeJsonConverter))]
public readonly record struct PresentationBlockType : IEquatable<PresentationBlockType>
- Implements
- Inherited Members
Remarks
Eleven members and no twelfth. A plan is composed by a model, and a catalogue that were an open string would let one invent a presentation the client has no renderer for — so the set is declared here, adding to it is a source change that reaches a review, and a client can switch over it exhaustively.
It is a closed enumeration rather than a C# enum because a member carries two things beside its name. The identity is the value the wire uses, which must survive a rename of the C# member; and the version is the revision of that block type's own contract, which is what lets a client meeting a plan from a newer service render the blocks it knows and refuse one block rather than the whole run. A separate lookup table for either would be a second place to keep in step with this one.
A version is raised when that block type's shape changes and never for a change elsewhere, which is the point of putting it here rather than deriving it from the plan's schema version. An identity is allocated once and never reused, exactly as an error code is. Being a struct, default is reachable and names no block; it reports itself through IsSpecified and is refused by the converter.
Fields
- AnswerIdentity
The identity of the block presenting one synthesized answer.
- AttachmentGalleryIdentity
The identity of the block presenting files found in mail.
- DraftIdentity
The identity of the block presenting text to be sent.
- EventProposalIdentity
The identity of the block presenting a date to be put on the calendar.
- EvidenceListIdentity
The identity of the block presenting the messages an answer rests on.
- FactTableIdentity
The identity of the block comparing values across a known set of columns.
- PeopleIdentity
The identity of the block presenting people and organizations.
- SuggestedActionIdentity
The identity of the block presenting a next step somebody may take.
- TaskProposalIdentity
The identity of the block presenting a task to be owed.
- ThreadStateIdentity
The identity of the block presenting where a conversation stands.
- TimelineIdentity
The identity of the block presenting change over time.
Properties
- Actionable
Gets whether a block of this type offers the reader something to do rather than only something to read.
- All
Gets every block type the catalogue holds.
- Answer
Gets the type of the block presenting one synthesized answer.
- AttachmentGallery
Gets the type of the block presenting files found in mail.
- Draft
Gets the type of the block presenting text to be sent.
- EventProposal
Gets the type of the block presenting a date to be put on the calendar.
- EvidenceList
Gets the type of the block presenting the messages an answer rests on.
- FactTable
Gets the type of the block comparing values across a known set of columns.
- Identity
Gets the identity the wire uses, which survives a rename of the C# member.
- IsSpecified
Gets whether this value names a catalogued block type rather than the unusable struct default.
- People
Gets the type of the block presenting people and organizations.
- SuggestedAction
Gets the type of the block presenting a next step somebody may take.
- TaskProposal
Gets the type of the block presenting a task to be owed.
- ThreadState
Gets the type of the block presenting where a conversation stands.
- Timeline
Gets the type of the block presenting change over time.
- Version
Gets the revision of this block type's own contract, which every block of the type carries.
Methods
- ToString()
Returns the fully qualified type name of this instance.
- TryParse(string?, out PresentationBlockType)
Parses an identity read off the wire.