Enum TimelinePageDirection
- Namespace
- MailFathom.Application.Emails.BrowseTimeline
- Assembly
- MailFathom.Application.dll
Which way a page continues from the cursor it was asked with.
public enum TimelinePageDirection
Fields
Backward = 1The page before the cursor in the sorted order, which is what scrolling back asks for.
Forward = 0The page after the cursor in the sorted order, which is what continued scrolling asks for.
Remarks
It is a different question from EmailTimelineDirection and the two are needed together. That one says which end of the timeline the list is sorted from and is part of what a cursor was issued for; this one says whether the page being asked for lies after that cursor or before it. A person scrolling down a newest-first list and a person scrolling back up it are reading the same order in both directions, so folding the two into one value would make scrolling back a re-sort — a list that turned upside down under somebody's finger.
The order a page is returned in never changes with it. A backward page is read away from the cursor and handed back in the sorted order, so a client appends or prepends what it received without reversing anything.