Class PagedResponse<TResponse>
JSON envelope wrapping a single page of items and its cursor links.
public sealed record PagedResponse<TResponse> : IEquatable<PagedResponse<TResponse>>
Type Parameters
TResponse
- Inheritance
-
PagedResponse<TResponse>
- Implements
-
IEquatable<PagedResponse<TResponse>>
- Inherited Members
- Extension Methods
Constructors
PagedResponse(IReadOnlyList<TResponse>, PageLink?, PageLink?, int, int, int, bool)
JSON envelope wrapping a single page of items and its cursor links.
public PagedResponse(IReadOnlyList<TResponse> Items, PageLink? Next, PageLink? Previous, int RequestedLimit, int AppliedLimit, int DeliveredCount, bool WasCapped)
Parameters
ItemsIReadOnlyList<TResponse>NextPageLinkPreviousPageLinkRequestedLimitintAppliedLimitintDeliveredCountintWasCappedbool
Properties
AppliedLimit
public int AppliedLimit { get; init; }
Property Value
DeliveredCount
public int DeliveredCount { get; init; }
Property Value
Items
public IReadOnlyList<TResponse> Items { get; init; }
Property Value
- IReadOnlyList<TResponse>
Next
public PageLink? Next { get; init; }
Property Value
Previous
public PageLink? Previous { get; init; }
Property Value
RequestedLimit
public int RequestedLimit { get; init; }
Property Value
WasCapped
public bool WasCapped { get; init; }