Constructor NotificationPage
- Namespace
- MailFathom.Application.Notifications
- Assembly
- MailFathom.Application.dll
NotificationPage(IReadOnlyList<Notification>, NotificationCursor?)
Carries one bounded page of a person's notifications and the boundary the next page continues from.
public NotificationPage(IReadOnlyList<Notification> Notifications, NotificationCursor? NextCursor)
Parameters
NotificationsIReadOnlyList<Notification>The notifications, newest first.
NextCursorNotificationCursor?The cursor a caller presents for the following page, or null when this page reached the end of the centre.
Remarks
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 centre held nothing more, so a caller stops when the cursor stops instead of comparing the count against the size it asked for.