Constructor CalendarFileEntry
- Namespace
- MailFathom.Application.Calendar.Import
- Assembly
- MailFathom.Application.dll
CalendarFileEntry(ImportedCalendarEventUid, CalendarEventTitle, DateTimeOffset, DateTimeOffset?, bool)
One entry of an iCalendar file, read far enough to be an event and no further.
public CalendarFileEntry(ImportedCalendarEventUid Uid, CalendarEventTitle Title, DateTimeOffset Start, DateTimeOffset? End, bool IsAllDay)
Parameters
UidImportedCalendarEventUidThe identifier the entry named itself by, which is what recognizes a second import of the file.
TitleCalendarEventTitleWhat the entry calls itself, read from its summary.
StartDateTimeOffsetThe instant it begins, resolved from whatever the file stated it in.
EndDateTimeOffset?The instant it ends, or null where the entry stated none.
IsAllDayboolWhether the entry names a day rather than a clock time.
Remarks
This is what the reader answers with instead of the parsed entry it read: the file format's own types stay inside the adapter that owns parsing, and what crosses the port is the five facts a MailFathom event is made of. Nothing an entry additionally carries — its organizer, its participants, its location, its description, the files it attaches, the addresses it names — is read at all, so an import cannot become a way to put somebody else's text, or a link to somebody else's server, into this deployment.
The instants are resolved by the time the entry reaches here, because resolving one is what the file's zone declarations are for and the reader is the only thing that has them. What is left for the import to decide is whether the calendar already holds the entry.