Method ToCalendarEvent
- Namespace
- MailFathom.Domain.Notifications
- Assembly
- MailFathom.Domain.dll
ToCalendarEvent(CalendarEventId)
Creates a target that leads to one event of the person's own calendar.
public static NotificationTarget ToCalendarEvent(CalendarEventId calendarEvent)
Parameters
calendarEventCalendarEventIdThe event the notification is about.
Returns
- NotificationTarget
A calendar event target.
Remarks
One event rather than the calendar screen, because what a reminder is about is a single commitment rather than a day: a reader following it is taken to the thing they were reminded of, and a client with no screen for it yet leaves them where they were exactly as it does for a screen it does not answer for.
Exceptions
- ArgumentException
Thrown when
calendarEventnames no event.