Table of Contents

Class ResultInfo

Namespace
Cloudflare.NET.Core.Models
Assembly
Cloudflare.NET.dll

Contains pagination information from a Cloudflare API list response that uses page numbers.

public sealed record ResultInfo : IEquatable<ResultInfo>
Inheritance
ResultInfo
Implements
Inherited Members

Constructors

ResultInfo(int, int, int, int, int, string?)

Contains pagination information from a Cloudflare API list response that uses page numbers.

public ResultInfo(int Page, int PerPage, int Count, int TotalCount, int TotalPages, string? Cursor = null)

Parameters

Page int

The current page number.

PerPage int

The number of items per page.

Count int

The number of items in the current page.

TotalCount int

The total number of items across all pages.

TotalPages int

The total number of pages.

Cursor string

Optional cursor for the next page. Some Cloudflare APIs (e.g., R2 Buckets) return cursor-based pagination information in the standard result_info field rather than a separate cursor_result_info field.

Properties

Count

The number of items in the current page.

[JsonPropertyName("count")]
public int Count { get; init; }

Property Value

int

Cursor

Optional cursor for the next page. Some Cloudflare APIs (e.g., R2 Buckets) return cursor-based pagination information in the standard result_info field rather than a separate cursor_result_info field.

[JsonPropertyName("cursor")]
public string? Cursor { get; init; }

Property Value

string

Page

The current page number.

[JsonPropertyName("page")]
public int Page { get; init; }

Property Value

int

PerPage

The number of items per page.

[JsonPropertyName("per_page")]
public int PerPage { get; init; }

Property Value

int

TotalCount

The total number of items across all pages.

[JsonPropertyName("total_count")]
public int TotalCount { get; init; }

Property Value

int

TotalPages

The total number of pages.

[JsonPropertyName("total_pages")]
public int TotalPages { get; init; }

Property Value

int