Table of Contents

Class DutyStatusLogComparer

Namespace
Geotab.Checkmate.ObjectModel
Assembly
Geotab.Checkmate.ObjectModel.dll

false Class to compare DutyStatusLogs.

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 bool

Is 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 DutyStatusLog

The x.

y DutyStatusLog

The y.

Returns

int

Returns an integer that indicates whether the first instance is earlier than, the same as, or later than the second instance