Struct InfinitePageInfo<TData, TPageParam>
- Namespace
- DotNetQuery.Core
- Assembly
- DotNetQuery.Core.dll
Contextual information passed to GetNextPageParam and GetPreviousPageParam
to derive the cursor or offset for the next fetch.
public readonly record struct InfinitePageInfo<TData, TPageParam> : IEquatable<InfinitePageInfo<TData, TPageParam>>
Type Parameters
TDataThe type of a single page of data.
TPageParamThe type of the page parameter (cursor/offset).
- Implements
-
IEquatable<InfinitePageInfo<TData, TPageParam>>
- Inherited Members
Constructors
InfinitePageInfo(TData, IReadOnlyList<TData>, TPageParam, IReadOnlyList<TPageParam>)
Contextual information passed to GetNextPageParam and GetPreviousPageParam
to derive the cursor or offset for the next fetch.
public InfinitePageInfo(TData Page, IReadOnlyList<TData> AllPages, TPageParam PageParam, IReadOnlyList<TPageParam> AllPageParams)
Parameters
PageTDataThe boundary page — the last page for
GetNextPageParam, the first page forGetPreviousPageParam.AllPagesIReadOnlyList<TData>All currently loaded pages, in order from oldest to newest.
PageParamTPageParamThe parameter that was used to fetch
Page.AllPageParamsIReadOnlyList<TPageParam>The parameters used to fetch each page in
AllPages.AllPageParams[i]corresponds toAllPages[i].
Properties
AllPageParams
The parameters used to fetch each page in AllPages.
AllPageParams[i] corresponds to AllPages[i].
public IReadOnlyList<TPageParam> AllPageParams { get; init; }
Property Value
- IReadOnlyList<TPageParam>
AllPages
All currently loaded pages, in order from oldest to newest.
public IReadOnlyList<TData> AllPages { get; init; }
Property Value
- IReadOnlyList<TData>
Page
The boundary page — the last page for GetNextPageParam,
the first page for GetPreviousPageParam.
public TData Page { get; init; }
Property Value
- TData
PageParam
The parameter that was used to fetch Page.
public TPageParam PageParam { get; init; }
Property Value
- TPageParam