Class CalendarImportSummary
- Namespace
- MailFathom.Application.Calendar.Import
- Assembly
- MailFathom.Application.dll
What a file would put on somebody's calendar, or what it just did.
public sealed record CalendarImportSummary : IEquatable<CalendarImportSummary>
- Inheritance
-
CalendarImportSummary
- Implements
- Inherited Members
Remarks
One type answers both acts deliberately. What a person is shown before they confirm has to be the same reading that is then performed, and two types would be two readings a change could put out of step — the summary promising seventy events and the import writing sixty-eight, with nothing in either saying which was right.
It names counts and a span of dates, never an entry. The titles, the days, and the identifiers a file carries are somebody's appointments, so what comes back is how many and between which two instants; the events themselves are read from the calendar afterwards, by the same window every other view over it is.
Properties
- Events
Gets how many events the file puts on the calendar, which a summary states as what it would put there.
- Outcome
Gets what became of the file as a whole.
- Skipped
Gets how many entries were skipped, per reason, ordered by the reason so two readings report alike.
Methods
- Of(IReadOnlyCollection<DateTimeOffset>, IReadOnlyCollection<CalendarImportSkipReason>)
States what a readable file amounts to.
- Refused(CalendarImportOutcome)
States that the file was refused as a whole.