Class PersonalTask
- Namespace
- MailFathom.Domain.Tasks
- Assembly
- MailFathom.Domain.dll
States one thing a person owes, entered by them or read out of their mail.
public sealed record PersonalTask : IEquatable<PersonalTask>
- Inheritance
-
PersonalTask
- Implements
- Inherited Members
Remarks
It is native to this deployment and stored beside everything else: no external task-management protocol is spoken,
chosen, or synchronized against, so what a person sees here is what this database holds. It is per user, on the
(user, identifier) axis every account reference already uses, and it is a personal list rather than a shared
board — nothing here assigns work to anybody but the person whose list it is.
The type is named for the list it belongs to rather than simply Task, because a domain type by that name
would collide at every point of use with the one every asynchronous method in this solution returns, and the
conventions refuse a name a reader has to recover from a namespace.
A task derived from mail is derived personal data with the same classification as the message behind it: the title may be a sentence read out of a body. What it does not hold is a second copy of the mailbox — no body, no attachment, no address — so the message is cited rather than repeated, and a task outlives that citation because what a person owes does not stop being owed when the mail naming it is erased.
Fields
- DueDayReminderHour
The hour on the due day a task's reminders are measured back from, in the offset the task states.
- MaximumTitleLength
The longest title stored, which is a line on a list rather than a note.
Properties
- AnchorsRemindersAt
Gets the instant every reminder on this task is measured back from, and null where nothing announces it.
- DueDayOffset
Gets the UTC offset the person's due day runs in, and null where the task announces nothing.
- Id
Gets what addresses this task.
- IsCompleted
Gets whether the person has done it.
- Origin
Gets where the task came from, and so whether the person has committed to it.
- Reminders
Gets the leads this task is announced at, longest first, which is empty where nothing announces it.
- SourceMessage
Gets the message the task was read out of, and null where it names none.
- Title
Gets the line the list is drawn with.
- User
Gets the person whose list it is on.
Methods
- Compose(PersonalTaskId, UserId, string, DateOnly?, TaskAnnouncement, PersonalTaskOrigin, StoredEmailId?)
Composes a task nobody has completed yet.
- RemindsAt(Reminder)
Reports the instant one of this task's reminders falls at.
- Restore(PersonalTaskId, UserId, string, DateOnly?, TaskAnnouncement, PersonalTaskOrigin, StoredEmailId?, bool)
Restores a task this deployment already kept, with the origin and completion it was stored under.
- Revise(string, DateOnly?, TaskAnnouncement)
States the task as the person has just edited it.