Class DueReminder
- Namespace
- MailFathom.Application.Reminders
- Assembly
- MailFathom.Application.dll
One reminder that has come due, with everything announcing it takes and nothing else.
public sealed record DueReminder : IEquatable<DueReminder>
- Inheritance
-
DueReminder
- Implements
- Inherited Members
Remarks
The headline travels here because the notification's own headline is what the thing is called, and reading the event or the task a second time to learn it would be one query per reminder. Nothing else about that record does: the run has no use for an event's origin or a task's completion, and a record that carried them would be a second copy of the calendar and the task list passing through a background pass.
Subject is what decides the shape of the notification — its kind, what it leads to, and the name its deduplication key is written under — and Identity is the record it is about within that kind. The two are kept apart from the headline so that composing the notification stays one reading of a closed set rather than a guess at which identifier happens to be present.
DueAt is the instant the reminder falls at as the record now stands, which is what the claim is made against — so a reader holding one of these is holding the answer to which occurrence it is announcing rather than only which reminder.
The headline is personal data and the owner is who it belongs to. Neither is logged, made a metric dimension, or put into a failure message; Identity is what a failure names.
Constructors
- DueReminder(UserId, ReminderSubject, Guid, string, Reminder, DateTimeOffset)
One reminder that has come due, with everything announcing it takes and nothing else.
Properties
- DueAt
The instant that lead falls at, as the record now stands.
- Headline
What that record is called.
- Identity
What addresses that record.
- Owner
The person whose record the reminder is on.
- Reminder
The lead the person set.
- Subject
Which kind of record it is on.