Table of Contents

Class PagedResult<T>

Namespace
CivitaiSharp.Core.Response
Assembly
CivitaiSharp.Core.dll

Represents a page of items along with pagination metadata.

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

Type Parameters

T

The type of items in the page.

Inheritance
PagedResult<T>
Implements
Inherited Members

Constructors

PagedResult(IReadOnlyList<T>, PaginationMetadata?)

Represents a page of items along with pagination metadata.

public PagedResult(IReadOnlyList<T> Items, PaginationMetadata? Metadata = null)

Parameters

Items IReadOnlyList<T>

The items in this page.

Metadata PaginationMetadata

Optional pagination metadata for navigating to other pages.

Properties

Items

The items in this page.

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

Property Value

IReadOnlyList<T>

Metadata

Optional pagination metadata for navigating to other pages.

public PaginationMetadata? Metadata { get; init; }

Property Value

PaginationMetadata