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
TClass 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
dataIEnumerable<T>The data within the page.
totalRecordsintThe total number of records available.
totalPagesintTotal 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
totalRecordsintThe total number of records available.
pageSizeintPage size.
dataIEnumerable<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
Tfor 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.