Class DutyStatusLogComparer
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public sealed class DutyStatusLogComparer : IComparer<DutyStatusLog>
- Inheritance
-
DutyStatusLogComparer
- Implements
- Inherited Members
Constructors
DutyStatusLogComparer()
Initializes a new instance of the DutyStatusLogComparer class.
public DutyStatusLogComparer()
DutyStatusLogComparer(bool)
Initializes a new instance of the DutyStatusLogComparer class.
public DutyStatusLogComparer(bool isChronological)
Parameters
isChronological
boolIs the order for comparison chronological.
Properties
IsChronological
Gets or sets a value indicating whether reorder the DutyStatusLog comparison.
public bool IsChronological { get; set; }
Property Value
- bool
The value indicating the order of DutyStatusLog comparison
Methods
Compare(DutyStatusLog?, DutyStatusLog?)
Compares the properties of x and y.
public int Compare(DutyStatusLog? x, DutyStatusLog? y)
Parameters
x
DutyStatusLogThe x.
y
DutyStatusLogThe y.
Returns
- int
Returns an integer that indicates whether the first instance is earlier than, the same as, or later than the second instance