Class SuggestedActionBlock
- Namespace
- MailFathom.Application.Discovery.Presentation.Blocks
- Assembly
- MailFathom.Application.dll
A next step somebody may take, with what it would change and why it is being suggested.
public sealed record SuggestedActionBlock : PresentationBlock, IEquatable<PresentationBlock>, IEquatable<SuggestedActionBlock>
- Inheritance
-
SuggestedActionBlock
- Implements
- Inherited Members
Remarks
The block that offers rather than reports. It carries no authority of its own: it names a step from a closed set, says what taking it would change, and says whether it must be confirmed — the client is what offers it and whatever governs that step is what permits it.
Confirmation is stated by the producer and is not derived from the impact, because the two answer different questions. An action that sends mail always needs confirming; an action that changes nothing may still need it where the run is unsure the suggestion fits, and a contract that computed the flag would have no way to say so.
Constructors
- SuggestedActionBlock(PresentationEvidence, SuggestedActionKind, PresentationText, SuggestedActionImpact, bool)
Initializes a next step somebody may take.
Properties
- Action
Gets which step is suggested.
- Impact
Gets what taking it would change.
- Reason
Gets why it is being suggested.
- RequiresConfirmation
Gets whether it must be confirmed before it is taken.