Table of Contents

Class EntityLinkTypeExtensions

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

Extension methods for EntityLinkType enum

public static class EntityLinkTypeExtensions
Inheritance
EntityLinkTypeExtensions
Inherited Members

Methods

Returns true if the EntityLinkType is an on-going type.

public static bool IsOnGoing(this EntityLinkType type)

Parameters

type EntityLinkType

The value of EntityLinkType.

Returns

bool

True or false whether EntityLinkType is an on-going type or not.

Returns true if passed entitylinktype is a Tachograph driver type

public static bool IsTachographLink(this EntityLinkType type)

Parameters

type EntityLinkType

The type.

Returns

bool

true if passed EntityLinkType is a Tachograph link

Transform an ongoing EntityLinkType to its closure equivalent.

public static EntityLinkType ToClosedType(this EntityLinkType value)

Parameters

value EntityLinkType

The value of EntityLinkType.

Returns

EntityLinkType

The closure type associated with EntityLinkType value.

Transform a closed EntityLinkType to its ongoing equivalent.

public static EntityLinkType ToOnGoingType(this EntityLinkType value)

Parameters

value EntityLinkType

The value of EntityLinkType.

Returns

EntityLinkType

The ongoing type associated with EntityLinkType value.