Class MailBodyCleaningProposal
- Namespace
- MailFathom.Application.EmailContent.Cleaning
- Assembly
- MailFathom.Application.dll
What a producer answered when it was asked which blocks of one body to keep.
public sealed record MailBodyCleaningProposal : IEquatable<MailBodyCleaningProposal>
- Inheritance
-
MailBodyCleaningProposal
- Implements
- Inherited Members
Remarks
Two states and no third: either a set of ranges arrived, whatever it turns out to say, or nothing arrived and the reason is one the message had no part in. That separation is what lets the use case report a spent allowance differently from an answer it could not use, which are the two things an operator reads differently.
A producer that answered with ranges has said everything it is going to say. Whether those ranges describe the document is decided above this type rather than inside it, because the document is what they have to be checked against and the producer is not the thing holding it.
Properties
- Segments
Gets the ranges the producer wrote, which is empty for a withheld proposal.
- Withholding
Gets why nothing was proposed, or None where something was.
Methods
- Proposing(IReadOnlyList<MailBodyCleaningSegment>)
States the ranges a producer answered with.
- Withheld(MailBodyCleaningWithholding)
States that nothing was proposed, and why.