Interface ISort
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Sort criteria available through the public API, used to sort Entitys. Together with "resultsLimit" facilitates infinite scroll pagination. Check specific Entity for the sortable fields. If no sortable fields are specified then sorting is not supported.
public interface ISort
Properties
LastId
Gets or sets the last id returned from previous request, can be null for the first request. Ensures a deterministic order when "sortBy" name (which is not unique) is provided.
Id? LastId { get; set; }
Property Value
- Id
The last id.
Offset
Gets or sets the results offset as the last known value of the "sortBy" field.
object? Offset { get; set; }
Property Value
- object
The offset.
SortBy
Gets or sets the field name to sort by.
Default is by ID.
string SortBy { get; set; }
Property Value
- string
The field to sort by.
SortDirection
Gets or sets the sort direction.
Default is Asc.
SortDirection? SortDirection { get; set; }
Property Value
- SortDirection?
The sort direction.