Table of Contents

Class DateTimeEffectivityCheck

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

collection of methods to check if an entity is active in a given DateTime range.

public static class DateTimeEffectivityCheck
Inheritance
DateTimeEffectivityCheck
Inherited Members

Methods

IsActive(RoutePlanItem, DateTime?, DateTime?)

Determines if the RoutePlanItem is active for the specified DateTime range any intersection with the DateTime range passes this method's filter.

public static bool IsActive(RoutePlanItem entity, DateTime? from, DateTime? to)

Parameters

entity RoutePlanItem

The entity.

from DateTime?

start of the DateTime range.

to DateTime?

end of the DateTime range.

Returns

bool

If the RoutePlanItem is active for the specified DateTime range.

IsActive(Zone, DateTime?, DateTime?)

Determines if the Zone is active for the specified DateTime range any intersection with the DateTime range passes this method's filter.

public static bool IsActive(Zone entity, DateTime? from, DateTime? to)

Parameters

entity Zone

The entity.

from DateTime?

start of the DateTime range.

to DateTime?

end of the DateTime range.

Returns

bool

If the Zone is active for the specified DateTime range.