Constructor DayLayoutSuggestion
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
DayLayoutSuggestion(IReadOnlyList<DayLayoutPlacement>, IReadOnlyList<PersonalTaskId>)
An arrangement of one day that is offered and never applied.
public DayLayoutSuggestion(IReadOnlyList<DayLayoutPlacement> Placements, IReadOnlyList<PersonalTaskId> NotToday)
Parameters
PlacementsIReadOnlyList<DayLayoutPlacement>What to do and when, in the order it is suggested, holding each task at most once.
NotTodayIReadOnlyList<PersonalTaskId>The tasks that do not realistically fit the day, which the person is shown rather than told about afterwards.
Remarks
Nothing here has happened. No task is moved, no due day is rewritten, and no event is put on a calendar: a suggestion is read by the screen that asked for it and comes to nothing unless the person acts on it, through the routes that own each of those acts. That is what makes this a value rather than a write, and it is why laying out a day twice leaves the same two lists it started with.
It names tasks by identity and nothing else. The lines were sent to decide the arrangement and the arrangement does not repeat them, so a client draws each row from the task it already holds — which is also what keeps an arrangement from becoming a second copy of somebody's list.