Constructor PersonalTaskPage
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
PersonalTaskPage(IReadOnlyList<PersonalTask>, string?)
Carries one bounded page of a person's tasks and the boundary the next page continues from.
public PersonalTaskPage(IReadOnlyList<PersonalTask> Tasks, string? NextCursor)
Parameters
TasksIReadOnlyList<PersonalTask>The tasks, soonest due first, with the undated ones last.
NextCursorstringThe cursor a caller presents for the following page, or null when this page reached the end of the list.
Remarks
The cursor is the encoded form rather than the PersonalTaskCursor the store walks by, because what a page hands back is what a caller presents again: the position the store takes carries no fingerprint and no version, and issuing it raw would be handing a client a boundary it could compose one of for itself.
The absent cursor is the end of the walk rather than a page that happened to be short: a page is only ever short because the list held nothing more, so a caller stops when the cursor stops instead of comparing the count against the size it asked for.