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
TitlestringWhat the conversation is called, and null while nothing has named it.
StartedAtDateTimeOffsetWhen the conversation was started, in UTC.
ComposingboolWhether an answer is being composed, which is what tells a reader watching one that more is coming.
EntriesIReadOnlyList<AgentConversationEntry>Everything after the stated cursor, in order, and empty where the reader was already caught up.
MoreFollowsboolWhether 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.