Class DutyStatusAvailability
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Driver Availability for Hours of Service regulations.
public class DutyStatusAvailability : Entity, IEntity, IComparable, IIdentifiable
- Inheritance
-
DutyStatusAvailability
- Implements
- Inherited Members
Constructors
DutyStatusAvailability()
Initializes a new instance of the DutyStatusAvailability class.
public DutyStatusAvailability()
DutyStatusAvailability(User, IEnumerable<DutyStatusAvailabilityDuration>, List<DutyStatusRecap>)
Initializes a new instance of the DutyStatusAvailability class.
[Obsolete("Legacy constructor. Use separate parameters for rest, driving, etc.")]
public DutyStatusAvailability(User driver, IEnumerable<DutyStatusAvailabilityDuration> availabilities, List<DutyStatusRecap> recap)
Parameters
driver
UserThe driver.
availabilities
IEnumerable<DutyStatusAvailabilityDuration>The availabilities.
recap
List<DutyStatusRecap>The recap of cycle time spent each day.
DutyStatusAvailability(User, TimeSpan?, TimeSpan?, TimeSpan?, TimeSpan?, TimeSpan?, List<DutyStatusRecap>, List<DutyStatusCycleAvailability>)
Initializes a new instance of the DutyStatusAvailability class.
public DutyStatusAvailability(User driver, TimeSpan? rest, TimeSpan? driving, TimeSpan? cycle, TimeSpan? duty, TimeSpan? workday, List<DutyStatusRecap> recap, List<DutyStatusCycleAvailability> cycleAvailabilities)
Parameters
driver
UserThe driver.
rest
TimeSpan?The rest availability.
driving
TimeSpan?The driving availability.
cycle
TimeSpan?The cycle availability.
duty
TimeSpan?The duty availability.
workday
TimeSpan?The workday availability.
recap
List<DutyStatusRecap>The recap of cycle time spent each day.
cycleAvailabilities
List<DutyStatusCycleAvailability>The cycle availabilities.
Properties
Availabilities
Gets a list of DutyStatusAvailabilityDuration(s) for a driver.
[Obsolete("Legacy availabilities. Use separate fields for rest, driving, etc.")]
public List<DutyStatusAvailabilityDuration> Availabilities { get; }
Property Value
Cycle
Gets or sets the duration of cycle duty hours left.
public TimeSpan? Cycle { get; set; }
Property Value
CycleAvailabilities
Gets or sets cycle available to the driver in the future.
public List<DutyStatusCycleAvailability>? CycleAvailabilities { get; set; }
Property Value
CycleDriving
Gets or sets the duration of cycle driving hours left.
public TimeSpan? CycleDriving { get; set; }
Property Value
CycleRest
Gets or sets the duration left before cycle rest must be taken.
public TimeSpan? CycleRest { get; set; }
Property Value
Driver
Gets or sets the User associated with the duty status availability.
public User? Driver { get; set; }
Property Value
Driving
Gets or sets the duration left for driving.
public TimeSpan? Driving { get; set; }
Property Value
DrivingBreakDuration
Gets or sets the duration of the driving break (USA only)
public TimeSpan? DrivingBreakDuration { get; set; }
Property Value
Duty
Gets or sets the duration of total on-duty time left in a day.
public TimeSpan? Duty { get; set; }
Property Value
DutySinceCycleRest
Gets or sets the duty hours left since Cycle Rest.
public TimeSpan? DutySinceCycleRest { get; set; }
Property Value
Is16HourExemptionAvailable
Gets or sets if 16 hour exemption is available.
public bool? Is16HourExemptionAvailable { get; set; }
Property Value
IsAdverseDrivingApplied
Gets or sets if adverse driving exemption is applied.
public bool? IsAdverseDrivingApplied { get; set; }
Property Value
IsAdverseDrivingExemptionAvailable
Gets or sets if adverse driving exemption is available.
public bool? IsAdverseDrivingExemptionAvailable { get; set; }
Property Value
IsOffDutyDeferralExemptionAvailable
Gets or sets if off-duty deferral exemption is available.
public bool? IsOffDutyDeferralExemptionAvailable { get; set; }
Property Value
IsRailroadExemptionAvailable
Gets or sets if railroad exemption is available.
public bool? IsRailroadExemptionAvailable { get; set; }
Property Value
Recap
Gets or sets chronological array representing each day's On-duty time since beginning of cycle.
public List<DutyStatusRecap>? Recap { get; set; }
Property Value
Rest
Gets or sets the duration left before rest break must be taken.
public TimeSpan? Rest { get; set; }
Property Value
Workday
Gets or sets the duration of workday left in a day. Workday is a consecutive window that begins with first on-duty.
public TimeSpan? Workday { get; set; }
Property Value
Methods
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.