Table of Contents

Class DeviceFlags

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

The plan a device is on.

public class DeviceFlags
Inheritance
DeviceFlags
Inherited Members

Constructors

DeviceFlags()

Initializes a new instance of the DeviceFlags class.

public DeviceFlags()

DeviceFlags(List<VehicleFeatureCategory>?, bool, bool, bool, bool, bool, bool, bool, bool, bool, bool)

Initializes a new instance of the DeviceFlags class.

public DeviceFlags(List<VehicleFeatureCategory>? activeFeatures, bool isUIAllowed, bool isVINAllowed, bool isOdometerAllowed, bool isEngineAllowed, bool isTripDetailAllowed, bool isGarminAllowed, bool isHOSAllowed, bool isIridiumAllowed, bool isActiveTrackingAllowed, bool isContinuousConnectAllowed)

Parameters

activeFeatures List<VehicleFeatureCategory>

A list of VehicleFeatureCategorys that are currently active.

isUIAllowed bool

A bool indicating if the device can be viewed in MyGeotab. null if unknown.

isVINAllowed bool

A bool indicating if the device VIN can be viewed in MyGeotab. null if unknown.

isOdometerAllowed bool

A bool indicating if the device odometer can be viewed in MyGeotab. null if unknown.

isEngineAllowed bool

A bool indicating if the device engine data can be viewed in MyGeotab. null if unknown.

isTripDetailAllowed bool

A bool indicating if the device trip paths can be viewed in MyGeotab. null if unknown.

isGarminAllowed bool

if set to true [is garmin allowed].

isHOSAllowed bool

if set to true [is hos allowed].

isIridiumAllowed bool

if set to true [is iridium allowed].

isActiveTrackingAllowed bool

if set to true [is active tracking allowed].

isContinuousConnectAllowed bool

if set to true [is continuous connect allowed].

DeviceFlags(List<VehicleFeatureCategory>?, IEnumerable<VehicleFeatureCategory>, IEnumerable<string>)

Initializes a new instance of the DeviceFlags class.

public DeviceFlags(List<VehicleFeatureCategory>? activeFeatures, IEnumerable<VehicleFeatureCategory> allowedFeatures, IEnumerable<string> restrictions)

Parameters

activeFeatures List<VehicleFeatureCategory>

A list of VehicleFeatureCategorys that are currently active.

allowedFeatures IEnumerable<VehicleFeatureCategory>

A list of VehicleFeatureCategorys that are currently allowed.

restrictions IEnumerable<string>

A list of restrictions.

Properties

ActiveFeatures

Gets a list of features currently active on the device.

public List<VehicleFeatureCategory>? ActiveFeatures { get; }

Property Value

List<VehicleFeatureCategory>

List<T>.

IsActiveTrackingAllowed

Gets a value indicating whether the device has access to the active tracking functionality.

public bool IsActiveTrackingAllowed { get; }

Property Value

bool

bool

IsContinuousConnectAllowed

Gets a value indicating whether the device has access to the continuous connect functionality.

public bool IsContinuousConnectAllowed { get; }

Property Value

bool

bool

IsEngineAllowed

Gets a value indicating whether a bool indicating if the device has access to engine functionality.

public bool IsEngineAllowed { get; }

Property Value

bool

bool

IsGarminAllowed

Gets a value indicating whether the device has access to Garmin functionality.

public bool IsGarminAllowed { get; }

Property Value

bool

bool

IsHOSAllowed

Gets a value indicating whether the device has access to HOS functionality.

public bool IsHOSAllowed { get; }

Property Value

bool

bool

IsIridiumAllowed

Gets a value indicating whether the device has access to Iridium functionality.

public bool IsIridiumAllowed { get; }

Property Value

bool

bool

IsOdometerAllowed

Gets a value indicating whether the device has access to odometer functionality.

public bool IsOdometerAllowed { get; }

Property Value

bool

bool

IsTripDetailAllowed

Gets a value indicating whether the device has access to trip detail functionality.

public bool IsTripDetailAllowed { get; }

Property Value

bool

bool

IsUIAllowed

Gets a value indicating whether the device can be viewed in MyGeotab.

public bool IsUIAllowed { get; }

Property Value

bool

bool

IsVINAllowed

Gets a value indicating whether the device has access to VIN functionality.

public bool IsVINAllowed { get; }

Property Value

bool

bool

RatePlans

Gets the rate plans. Has been replaced by ActiveFeatures. Kept around for legacy serializers. See case 143314.

[Obsolete("Needed for legacy serializers. Fogbugz 143314")]
public IEnumerable<string> RatePlans { get; }

Property Value

IEnumerable<string>

List<T>

Methods

Clone()

Clones this instance.

public DeviceFlags Clone()

Returns

DeviceFlags

The cloned instance.

Equals(object?)

Determines whether the specified object, is equal to this instance.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with this instance.

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

HasGarminFeatures(VehicleFeatureCategory)

Returns true if the vehicle feature category is a Garmin category.

public static bool HasGarminFeatures(VehicleFeatureCategory feature)

Parameters

feature VehicleFeatureCategory

VehicleFeatureCategory

Returns

bool

Whether there are garmin features

HasHosFeatures(VehicleFeatureCategory)

Returns true if the vehicle feature category is an HOS category.

public static bool HasHosFeatures(VehicleFeatureCategory feature)

Parameters

feature VehicleFeatureCategory

VehicleFeatureCategory

Returns

bool

Whether there are HOS features