Class AgentConversationReading
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
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 sealed record AgentConversationReading : IEquatable<AgentConversationReading>
- Inheritance
-
AgentConversationReading
- Implements
- Inherited Members
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.
Constructors
- 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.
Properties
- Composing
Whether an answer is being composed, which is what tells a reader watching one that more is coming.
- Entries
Everything after the stated cursor, in order, and empty where the reader was already caught up.
- MoreFollows
Whether the conversation holds more past the last entry returned, which a reader collects by advancing its cursor and reading again.
- StartedAt
When the conversation was started, in UTC.