Class LatestDeviceInfoFilter
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
Filter object for filtering APIs returning LatestDeviceInfo.
public class LatestDeviceInfoFilter
- Inheritance
-
LatestDeviceInfoFilter
- Inherited Members
Constructors
LatestDeviceInfoFilter(string, FilterComparison, string?)
Initializes a new instance of the LatestDeviceInfoFilter class.
public LatestDeviceInfoFilter(string fieldName, FilterComparison comparisonType, string? compareTo)
Parameters
fieldName
stringField/diagnostic name to filter on.
comparisonType
FilterComparisonType of comparison for filter.
compareTo
stringValue to compare against.
Properties
CompareTo
Gets the value to apply this filter against.
public string? CompareTo { get; }
Property Value
- string
Value to compare to.
ComparisonType
Gets the type of comparison to perform.
public FilterComparison ComparisonType { get; }
Property Value
- FilterComparison
Comparison type.
FieldName
Gets the field name to apply this filter on.
public string FieldName { get; }
Property Value
- string
Field name to apply filter to.
Methods
MatchesFilters(LatestDeviceInfoFilter[], DeviceStatusInfo, StatusData[])
Determines if a DeviceStatusInfo and StatusData records matches a set of filters.
public static bool MatchesFilters(LatestDeviceInfoFilter[] filters, DeviceStatusInfo deviceStatusInfo, StatusData[] statusDataRecords)
Parameters
filters
LatestDeviceInfoFilter[]Filters to evaluate.
deviceStatusInfo
DeviceStatusInfoDeviceStatusInfo to evaluate against filters.
statusDataRecords
StatusData[]Diagnostics to evaluate against filters.
Returns
- bool
True if the device matches all filters, false if it does not.