Class DataPage<T>
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Represents a page of data of records of type T
."/>
public class DataPage<T>
Type Parameters
T
Class represents one record of data being paged.
- Inheritance
-
DataPage<T>
- Inherited Members
Constructors
DataPage(IEnumerable<T>, int, int)
Initializes a new instance of the DataPage<T> class.
[JsonConstructor]
public DataPage(IEnumerable<T> data, int totalRecords, int totalPages)
Parameters
data
IEnumerable<T>The data within the page.
totalRecords
intThe total number of records available.
totalPages
intTotal number of pages.
DataPage(int, int, IEnumerable<T>)
Initializes a new instance of the DataPage<T> class.
public DataPage(int totalRecords, int pageSize, IEnumerable<T> data)
Parameters
totalRecords
intThe total number of records available.
pageSize
intPage size.
data
IEnumerable<T>The data within the page.
Properties
Data
Gets an enumerable of T
.
public IEnumerable<T> Data { get; }
Property Value
- IEnumerable<T>
All records of type
T
for this page.
TotalPages
Gets the total pages available.
public int TotalPages { get; }
Property Value
- int
Total pages available.
TotalRecords
Gets the total number of records available.
public int TotalRecords { get; }
Property Value
- int
Total records available.