Table of Contents

Constructor AgentConversationReading

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

AgentConversationReading(string?, DateTimeOffset, bool, IReadOnlyList<AgentConversationEntry>, bool)

One read of a conversation: what it is called, whether an answer is being composed, and everything written past the cursor the reader held.

public AgentConversationReading(string? Title, DateTimeOffset StartedAt, bool Composing, IReadOnlyList<AgentConversationEntry> Entries, bool MoreFollows)

Parameters

Title string

What the conversation is called, and null while nothing has named it.

StartedAt DateTimeOffset

When the conversation was started, in UTC.

Composing bool

Whether an answer is being composed, which is what tells a reader watching one that more is coming.

Entries IReadOnlyList<AgentConversationEntry>

Everything after the stated cursor, in order, and empty where the reader was already caught up.

MoreFollows bool

Whether the conversation holds more past the last entry returned, which a reader collects by advancing its cursor and reading again.

Remarks

All of it together is what makes one route serve the first read and every later one. A reader holding nothing reads from the beginning and is given the conversation so far; one holding a cursor is given the tail; and either is told in the same answer whether an answer is still being composed and whether there is more to collect.

The title and the instant ride along because they are the conversation's own rather than any entry's, and a reader that had to ask for them separately would be making two calls to draw one screen.

A conversation that does not exist or belongs to somebody else is not a value of this type — the read reports no such conversation instead, which is one answer rather than a further state to read this apart from.