Class NotificationStatement
- Namespace
- MailFathom.Domain.Notifications
- Assembly
- MailFathom.Domain.dll
What a notification says, as the condition it was raised for and the numbers it is stated with.
public sealed record NotificationStatement : IEquatable<NotificationStatement>
- Inheritance
-
NotificationStatement
- Implements
- Inherited Members
Remarks
It is what lets a row be drawn in the reader's own language: the service holds the condition and its counts, and whoever renders the row supplies the sentence. The two numbers therefore mean whatever the cause says they mean, which is why a statement is only ever built through the factory for one cause — a cause and a count that do not belong together cannot be composed here at all.
It carries numbers and nothing else. A subject, an address, a filename, or any other fragment of mail would be a second copy of the mailbox in a record that deliberately holds none, so a count is the widest thing a cause is ever stated with.
Properties
- Cause
Gets the condition the notification was raised for.
Methods
- CalendarReminderDue(int)
States that a reminder on a calendar event has come due, counting how far ahead of it the reminder falls.
- CredentialRefused()
States that the mail server refused the credential an account holds.
- MailArrived(int)
States that mail arrived, counting the messages one run committed.
- Restore(NotificationCause?, int?, int?)
Restores the statement a stored row holds, or nothing where the row names no cause.
- SynchronizationIncomplete(int, int)
States that a run did not finish every folder it scheduled.
- TaskReminderDue(int)
States that a reminder against a task's due date has come due, counting how far ahead of it the reminder falls.