Table of Contents

Class AgentMessageWritten

Namespace
MailFathom.Application.Agent.Conversations
Assembly
MailFathom.Application.dll

Somebody wrote a message: the person asking, or the agent saying something in its own words.

public sealed record AgentMessageWritten : AgentConversationEntry, IEquatable<AgentConversationEntry>, IEquatable<AgentMessageWritten>
Inheritance
AgentMessageWritten
Implements
Inherited Members

Remarks

One entry for both authors, because a message is the same record whoever wrote it: a line of text placed in the conversation's order. What differs is that a person's message says what it was asked about and the agent's says nothing of the kind — the agent answers under the scope it was given rather than choosing one.

The agent writes one of these for a run that was cut short, saying so and that what arrived stays. It is a message rather than a mark on the answer it followed, because it is the agent speaking about the run rather than part of what the run composed, and the person is expected to say where to pick it up.

An answer the agent composes is not written this way: it opens with AgentAnswerStarted and says what it has to say in blocks. That is the settled shape — an answer is a presentation plan rather than prose — and it is why this entry carries text and no blocks.

Constructors

AgentMessageWritten(AgentMessageId, AgentMessageAuthor, PresentationText, AgentMessageScope?)

Somebody wrote a message: the person asking, or the agent saying something in its own words.

Fields

Kind

The value the type discriminator carries on the wire.

Properties

Author

Gets who wrote it.

EntryName

Gets the name this entry is written under, which is the value the type discriminator carries.

History

Gets which of the conversation's two readings this entry belongs to.

MessageId

The message being written, which the client generated so that a post retried over a dropped connection creates no second one.

Scope

What the question was asked about, and null for a message of the agent's own.

Text

Gets what was written, which is always something.