Table of Contents

Class PagedResponse<TResponse>

Namespace
Trellis.Asp
Assembly
Trellis.Asp.dll

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
Inherited Members
Extension Methods

Constructors

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

Items IReadOnlyList<TResponse>
Next PageLink
Previous PageLink
RequestedLimit int
AppliedLimit int
DeliveredCount int
WasCapped bool

Properties

AppliedLimit

public int AppliedLimit { get; init; }

Property Value

int

DeliveredCount

public int DeliveredCount { get; init; }

Property Value

int

Items

public IReadOnlyList<TResponse> Items { get; init; }

Property Value

IReadOnlyList<TResponse>

Next

public PageLink? Next { get; init; }

Property Value

PageLink

Previous

public PageLink? Previous { get; init; }

Property Value

PageLink

RequestedLimit

public int RequestedLimit { get; init; }

Property Value

int

WasCapped

public bool WasCapped { get; init; }

Property Value

bool