Class CalendarEventExtraction
- Namespace
- MailFathom.Application.Calendar.Extraction
- Assembly
- MailFathom.Application.dll
What one extraction produced: the events it settled, or the reason it produced none this time.
public sealed record CalendarEventExtraction : IEquatable<CalendarEventExtraction>
- Inheritance
-
CalendarEventExtraction
- Implements
- Inherited Members
Remarks
The two outcomes are unequal, and what a caller does with one follows from which it holds. A settled answer — including a settled answer of no events at all — is acted on and takes the text out of whatever queue it was in. A withheld one is not, because every reason an extraction is withheld outlives one message and would be met again by the next.
Fields
- MaximumEvents
The greatest number of events one reading of a message may find.
Properties
- Events
Gets what was found, which is empty for a settled answer of nothing and for a withheld one alike.
- IsSettled
Gets whether the answer is one to act on.
Methods
- Settled(IReadOnlyList<ExtractedCalendarEvent>)
Records a settled extraction.
- Withholding(CalendarEventExtractionWithholding)
Records that nothing was extracted, and why.