Class EwdAvailability
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class EwdAvailability : IEntity
- Inheritance
-
EwdAvailability
- Implements
- Inherited Members
Constructors
EwdAvailability()
Initializes a new instance of the EwdAvailability class.
public EwdAvailability()
EwdAvailability(int, string?, DateTime?, DateTime?, int?, int?)
Initializes a new instance of the EwdAvailability class.
public EwdAvailability(int timePeriod, string? timeUntilMustRest, DateTime? startDate, DateTime? toDate, int? nightRestBreakCount, int? consecutiveNightRestBreakCount)
Parameters
timePeriod
intThe time period for each rule in EWD ruleset.
timeUntilMustRest
stringThe time that driver can still work until they must rest.
startDate
DateTime?The DateTime for the start of the time period.
toDate
DateTime?The DateTime for the end of the time period.
nightRestBreakCount
int?Count for the nightRestBreak for current time period
consecutiveNightRestBreakCount
int?Count for the consecutiveNightRestBreak for current time period.
Properties
ConsecutiveNightRestBreakCount
Gets or sets the Count for the consecutive night rest break for current timePeriod.
public int? ConsecutiveNightRestBreakCount { get; set; }
Property Value
Id
public Id? Id { get; set; }
Property Value
NightRestBreakCount
Gets or sets the count for the nightRestBreak for current time period.
public int? NightRestBreakCount { get; set; }
Property Value
Rested
Gets or sets the Count for the consecutive rest duration of the current timePeriod.
public string? Rested { get; set; }
Property Value
StartDate
Gets or sets the DateTime for the start of the time period.
public DateTime? StartDate { get; set; }
Property Value
TimePeriod
Gets or sets the time period for each rule in EWD ruleset in milliseconds.
public int TimePeriod { get; set; }
Property Value
TimeUntilMustRest
Gets or sets the time that driver can still work until they must rest.
public string? TimeUntilMustRest { get; set; }
Property Value
ToDate
Gets or sets the DateTime for the end of the time period.
public DateTime? ToDate { get; set; }
Property Value
Methods
Clone()
Clone this IEntity.
public IEntity Clone()
Returns
- IEntity
The cloned instance.
GetReadOnly()
Gets a read only entity from this one.
public IEntity GetReadOnly()