Table of Contents

Class ChatImage

Namespace
MailFathom.Application.Chat
Assembly
MailFathom.Application.dll

One picture a turn carries beside its text.

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

Remarks

Octets and a media type, and nothing that describes them. Whether the format may be sent at all, how large a pixel grid it may declare, and what it is being asked about are the composing caller's decisions and are taken before a turn exists; what this boundary owns is the ceiling on how many octets one request carries, which ChatMessage documents.

**An image is not scanned before it leaves.** The sensitive-content guard every outbound turn's text passes through detects regions in a string, and there is no such thing to do to a photograph, so nothing pretends otherwise by passing the octets through a guard that would return them unchanged. An image reaching this type is therefore an image the deployment has decided to disclose whole.

Held as a ReadOnlyMemory<T> rather than an array, so a caller reading into a pooled buffer sends a window of it without copying. The memory has to stay valid until the call it is passed to completes, which is what a caller renting a buffer has to hold it across.

Constructors

ChatImage(string, ReadOnlyMemory<byte>)

One picture a turn carries beside its text.

Properties

Content

The image itself, sent as it arrived.

MediaType

What the octets are, read from the octets by whoever composed this rather than copied from anything a stranger declared.