Class PaginatedResult<T>
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
ItemsIReadOnlyList<T>TotalCountintCursorstringHasMorebool
Properties
Cursor
public string? Cursor { get; init; }
Property Value
HasMore
public bool HasMore { get; init; }
Property Value
Items
public IReadOnlyList<T> Items { get; init; }
Property Value
TotalCount
public int TotalCount { get; init; }