Table of Contents

Class PaginatedResult<T>

Namespace
JD.AI.Gateway.Endpoints
Assembly
JD.AI.Gateway.dll

Standard paginated response envelope for list endpoints. Uses cursor-based pagination with opaque Cursor tokens.

public sealed record PaginatedResult<T> : IEquatable<PaginatedResult<T>>

Type Parameters

T
Inheritance
PaginatedResult<T>
Implements
Inherited Members

Constructors

PaginatedResult(IReadOnlyList<T>, int, string?, bool)

Standard paginated response envelope for list endpoints. Uses cursor-based pagination with opaque Cursor tokens.

public PaginatedResult(IReadOnlyList<T> Items, int TotalCount, string? Cursor, bool HasMore)

Parameters

Items IReadOnlyList<T>
TotalCount int
Cursor string
HasMore bool

Properties

Cursor

public string? Cursor { get; init; }

Property Value

string

HasMore

public bool HasMore { get; init; }

Property Value

bool

Items

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

Property Value

IReadOnlyList<T>

TotalCount

public int TotalCount { get; init; }

Property Value

int