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
boolA bool indicating if the device can be viewed in MyGeotab. null if unknown.
isVINAllowed
boolA bool indicating if the device VIN can be viewed in MyGeotab. null if unknown.
isOdometerAllowed
boolA bool indicating if the device odometer can be viewed in MyGeotab. null if unknown.
isEngineAllowed
boolA bool indicating if the device engine data can be viewed in MyGeotab. null if unknown.
isTripDetailAllowed
boolA bool indicating if the device trip paths can be viewed in MyGeotab. null if unknown.
isGarminAllowed
boolif set to true [is garmin allowed].
isHOSAllowed
boolif set to true [is hos allowed].
isIridiumAllowed
boolif set to true [is iridium allowed].
isActiveTrackingAllowed
boolif set to true [is active tracking allowed].
isContinuousConnectAllowed
boolif 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
IsActiveTrackingAllowed
Gets a value indicating whether the device has access to the active tracking functionality.
public bool IsActiveTrackingAllowed { get; }
Property Value
IsContinuousConnectAllowed
Gets a value indicating whether the device has access to the continuous connect functionality.
public bool IsContinuousConnectAllowed { get; }
Property Value
IsEngineAllowed
Gets a value indicating whether a bool indicating if the device has access to engine functionality.
public bool IsEngineAllowed { get; }
Property Value
IsGarminAllowed
Gets a value indicating whether the device has access to Garmin functionality.
public bool IsGarminAllowed { get; }
Property Value
IsHOSAllowed
Gets a value indicating whether the device has access to HOS functionality.
public bool IsHOSAllowed { get; }
Property Value
IsIridiumAllowed
Gets a value indicating whether the device has access to Iridium functionality.
public bool IsIridiumAllowed { get; }
Property Value
IsOdometerAllowed
Gets a value indicating whether the device has access to odometer functionality.
public bool IsOdometerAllowed { get; }
Property Value
IsTripDetailAllowed
Gets a value indicating whether the device has access to trip detail functionality.
public bool IsTripDetailAllowed { get; }
Property Value
IsUIAllowed
Gets a value indicating whether the device can be viewed in MyGeotab.
public bool IsUIAllowed { get; }
Property Value
IsVINAllowed
Gets a value indicating whether the device has access to VIN functionality.
public bool IsVINAllowed { get; }
Property Value
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
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
Returns
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
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
Returns
- bool
Whether there are HOS features