Method Revise
- Namespace
- MailFathom.Domain.Tasks
- Assembly
- MailFathom.Domain.dll
Revise(string, DateOnly?, TaskAnnouncement)
States the task as the person has just edited it.
public PersonalTask Revise(string title, DateOnly? dueOn, TaskAnnouncement announcement)
Parameters
titlestringThe line the list is to be drawn with from now on.
dueOnDateOnly?The day it is due on, or null where the person took the date off it.
announcementTaskAnnouncementWhat announces it afterwards and the offset its due day runs in, or Silent to announce nothing.
Returns
- PersonalTask
The task as it now stands.
Remarks
Only the two values an edit is about, because the rest of the record is not the editor's to state: the identity and the person are what address the task, the origin moves by accepting a proposal rather than by typing, the completion moves by doing the thing, and the citation records where the task came from rather than what it is now about. An edit that could rewrite any of those would let a person turn a proposal into a commitment, or point one at a message it was never read out of, through the route that renames it.
Exceptions
- ArgumentNullException
Thrown when
announcementis null.- ArgumentException
Thrown when
titleis blank, when one lead is stated twice, or when leads are stated against no due day.- ArgumentOutOfRangeException
Thrown when
titleexceeds MaximumTitleLength, when more than MaximumCount leads are stated, or when the stated offset is not one a UTC offset can be.