Table of Contents

Struct ClientMessageView

Namespace
MailFathom.Application.Preferences
Assembly
MailFathom.Application.dll

Which of the three renderings a message opens on.

[JsonConverter(typeof(ClientMessageViewJsonConverter))]
public readonly record struct ClientMessageView : IEquatable<ClientMessageView>
Implements
Inherited Members

Remarks

A closed enumeration rather than a C# enum, for the reason ClientThemeChoice is one: the name travels both ways across the client endpoint and is stored as itself, so a member rename must not change any of the three and an ordinal would mean nothing to the client reading the response.

Three members rather than the two this preference carried before. The reduced document and the sender's own markup are what ADR 0024 named; the cleaned one is the reduced document with what the sender wrapped it in dropped, derived per open by a model that answers in block indices and never in text. It is a choice beside the other two rather than a switch on top of one, because a reader picks one rendering and the screen draws it.

Being a struct, default is reachable and is not a choice. It reports itself through IsSpecified, refuses to answer for a name, and is rejected by the converter below, so nothing undeclared reaches a response or the stored document.

Properties

All

Gets every choice this build publishes.

Cleaned

Gets the choice to draw that same tree with the blocks a cleaning dropped absent.

EmbeddedHtml

Gets the choice to draw the sender's own markup inline, with everything that runs or reports removed.

IsSpecified

Gets whether this value names a published choice rather than the unusable struct default.

Name

Gets the published name, which is what a client reads and what the stored document holds.

Reduced

Gets the choice to draw the closed document tree the service reduced the body to.

Methods

ToString()

Returns the fully qualified type name of this instance.

TryParse(string?, out ClientMessageView)

Reports the choice by its published name.