Class ReplyDraftRequest
- Namespace
- MailFathom.Application.Emails.ReplyDrafts
- Assembly
- MailFathom.Application.dll
States which message a reply is being drafted to, and what its author asked for.
public sealed record ReplyDraftRequest : IEquatable<ReplyDraftRequest>
- Inheritance
-
ReplyDraftRequest
- Implements
- Inherited Members
Remarks
The message is named by its stable local identity and by nothing else, exactly as an answer somebody writes by hand names it: the conversation the draft is grounded in, the account whose sent mail its style is derived from, and the people it may propose are all read out of the stored copy that identity resolves to, so a caller can state none of them and can state none of them wrongly.
The two texts are what makes this a drafting request rather than a reading. A selection is the part of the correspondence somebody pointed at — the paragraph they are actually answering — and an instruction is what they want said. Both are optional, and a request carrying neither is the ordinary one: reply to this conversation.
A request naming no message is the composer with nothing behind it, which the same drafting answers because it is the same act: somebody asking for text they will read, edit, and decide about. What changes is that there is no correspondence to ground it in, so nothing is read, nothing is cited, nobody is proposed, and the instruction is the whole of the request — which is why it is required there and optional beside a message.
Fields
- MaximumInstructionLength
The greatest length an instruction may have.
- MaximumSelectionLength
The greatest length a selection may have.
Properties
- AnsweredEmailId
Gets the stored message the reply answers, or null where the message being written answers none.
- Instruction
Gets what the person asked the reply to say, or null where they asked for nothing in particular.