Class PersonalTaskPage
- Namespace
- MailFathom.Application.Tasks
- Assembly
- MailFathom.Application.dll
Carries one bounded page of a person's tasks and the boundary the next page continues from.
public sealed record PersonalTaskPage : IEquatable<PersonalTaskPage>
- Inheritance
-
PersonalTaskPage
- Implements
- Inherited Members
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.
Constructors
- PersonalTaskPage(IReadOnlyList<PersonalTask>, string?)
Carries one bounded page of a person's tasks and the boundary the next page continues from.
Properties
- NextCursor
The cursor a caller presents for the following page, or null when this page reached the end of the list.
- Tasks
The tasks, soonest due first, with the undated ones last.