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
PageintThe current page number.
PerPageintThe number of items per page.
CountintThe number of items in the current page.
TotalCountintThe total number of items across all pages.
TotalPagesintThe total number of pages.
CursorstringOptional cursor for the next page. Some Cloudflare APIs (e.g., R2 Buckets) return cursor-based pagination information in the standard
result_infofield rather than a separatecursor_result_infofield.
Properties
Count
The number of items in the current page.
[JsonPropertyName("count")]
public int Count { get; init; }
Property Value
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
Page
The current page number.
[JsonPropertyName("page")]
public int Page { get; init; }
Property Value
PerPage
The number of items per page.
[JsonPropertyName("per_page")]
public int PerPage { get; init; }
Property Value
TotalCount
The total number of items across all pages.
[JsonPropertyName("total_count")]
public int TotalCount { get; init; }
Property Value
TotalPages
The total number of pages.
[JsonPropertyName("total_pages")]
public int TotalPages { get; init; }