Class ProductPage
One page of Find(ProductQuery, int, int, CancellationToken) results.
Implements
Inherited Members
Namespace: Activout.Blue5
Assembly: Activout.Blue5.dll
Syntax
public sealed record ProductPage : IEquatable<ProductPage>
Constructors
| Edit this page View SourceProductPage(IReadOnlyList<Product>, long, int, int)
One page of Find(ProductQuery, int, int, CancellationToken) results.
Declaration
public ProductPage(IReadOnlyList<Product> Items, long TotalCount, int Page, int PageSize)
Parameters
| Type | Name | Description |
|---|---|---|
| IReadOnlyList<Product> | Items | Products on this page. |
| long | TotalCount | Total number of matches reported by PAPI. |
| int | Page | 0-based page number. |
| int | PageSize | Requested page size. |
Properties
| Edit this page View SourceHasNextPage
Whether a following page has results.
Declaration
public bool HasNextPage { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Items
Products on this page.
Declaration
public IReadOnlyList<Product> Items { get; init; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyList<Product> |
Page
0-based page number.
Declaration
public int Page { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
PageSize
Requested page size.
Declaration
public int PageSize { get; init; }
Property Value
| Type | Description |
|---|---|
| int |
TotalCount
Total number of matches reported by PAPI.
Declaration
public long TotalCount { get; init; }
Property Value
| Type | Description |
|---|---|
| long |