Class AgentMessageScope
- Namespace
- MailFathom.Application.Agent.Conversations
- Assembly
- MailFathom.Application.dll
What one question was asked about: a kind from the closed set, and the object it names.
public sealed record AgentMessageScope : IEquatable<AgentMessageScope>
- Inheritance
-
AgentMessageScope
- Implements
- Inherited Members
Remarks
It is recorded per message rather than per conversation, because the context chip the client draws is cleared and re-set as a conversation goes on: the second question in one conversation is routinely about something else, and a scope kept on the conversation would say the whole history was asked under whichever object came last.
It names an object and carries none of it. A thread's subject, an event's title, and a run's answer are all mail-derived and none of them is here — what is stored is the identifier, so what the scope discloses to a reader of the row is that a question was asked about something rather than what that something says. The scope is nonetheless part of the same sensitive record as the message it belongs to: which thread somebody asked about is itself about them.
The constructor is public and does the checking, because this is read back out of a stored document as well as composed in process, and a type reachable only through its factories cannot be deserialized at all. The factories beside it are how it is composed here: each takes the identity its kind actually names, so a caller cannot pair a calendar event's identifier with a thread.
Constructors
- AgentMessageScope(AgentScopeKind, Guid?)
Initializes a scope, which is how one is read back out of a stored document.
Properties
- Kind
Gets which kind of thing the question was asked about.
Methods
- CalendarEvent(CalendarEventId)
The scope of a question asked about one entry in the person's calendar.
- DiscoveryRun(DiscoveryRunId)
The scope of a question carrying on from a Discover run's answer.
- Mailbox()
The scope of a question asked with nothing narrower named.
- Thread(EmailThreadId)
The scope of a question asked about one conversation of mail.