Table of Contents

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

TData

The type of a single page of data.

TPageParam

The 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

Page TData

The boundary page — the last page for GetNextPageParam, the first page for GetPreviousPageParam.

AllPages IReadOnlyList<TData>

All currently loaded pages, in order from oldest to newest.

PageParam TPageParam

The parameter that was used to fetch Page.

AllPageParams IReadOnlyList<TPageParam>

The parameters used to fetch each page in AllPages. AllPageParams[i] corresponds to AllPages[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