Class ExtractedCalendarEvent
- Namespace
- MailFathom.Application.Calendar.Extraction
- Assembly
- MailFathom.Application.dll
One event a reading of text found in it, before anything decided whose calendar it belongs to.
public sealed record ExtractedCalendarEvent : IEquatable<ExtractedCalendarEvent>
- Inheritance
-
ExtractedCalendarEvent
- Implements
- Inherited Members
Remarks
The same shape whichever text produced it, which is the whole reason one extraction serves both halves: a date a message named and a sentence somebody typed differ in where they came from rather than in what was found. What separates them is what the caller does next — a message's becomes a proposal on somebody's calendar, and a sentence's is handed back to the person who typed it and stored only if they save it.
It carries no origin, no owner, and no citation, because none of those is in the text: the reading knows what it read and nothing about the calendar it may reach. An end at or before the start never gets this far either, but the event does: the reading keeps it and leaves End unset, because what the text fixed was when the occasion begins and the length is the part to discard. That is why a caller may compose a CalendarEvent from one of these without checking — the span it would refuse is already gone, and it refuses by throwing rather than by dropping anything.
Constructors
- ExtractedCalendarEvent(CalendarEventTitle, DateTimeOffset, DateTimeOffset?)
One event a reading of text found in it, before anything decided whose calendar it belongs to.
Properties
- Start
When it begins.
- Title
What the text called it, already held to everything a title is held to.