Table of Contents

Class PagedResponse<T>

Namespace
FoundationaLLM.Common.Models.Collections
Assembly
FoundationaLLM.Common.dll

Represents a paged response that includes a list of items and a flag indicating if there are more items to retrieve.

public class PagedResponse<T>

Type Parameters

T

The type of items to return.

Inheritance
PagedResponse<T>
Inherited Members
Extension Methods

Properties

HasNextPage

Indicates if there are more items to retrieve.

[JsonPropertyName("has_next_page")]
public bool HasNextPage { get; set; }

Property Value

bool

Items

The list of items to return.

[JsonPropertyName("items")]
public IEnumerable<T>? Items { get; set; }

Property Value

IEnumerable<T>

TotalItems

The total number of items available. This is the total count, not necessarily the number of items returned in the response. Please note that certain APIs only return a count on the first page of results.

[JsonPropertyName("total_items")]
public long? TotalItems { get; set; }

Property Value

long?