Device class

Represents a device within the fleet that is managed by the dealer.

Inheritance

Constructors

Device({required int id, required String serialNumber, String? displayName, DeviceAddress address = const DeviceAddress(), String? modelNumber, required bool isConnected, String? deviceIpAddress, DeviceHost? deviceHost, bool? hasAcceptedPrivacyPolicy, required DeviceStatus status, DateTime? lastConnectedDate, DateTime? lastStatusUpdatedDate, DateTime? latestParameterUpdateDate, DateTime? maintenanceDate, required int alertCount, DealerOrg? dealerOrg, ConnectionType? connectionType, ServiceAgreementStatus? serviceAgreementStatus})
const

Properties

address DeviceAddress
final
alertCount int
final
connectionType ConnectionType?
final
dealerOrg DealerOrg?
final
deviceHost DeviceHost?
final
deviceIpAddress String?
final
displayName String
final
hasAcceptedPrivacyPolicy bool?
final
hashCode int
The hash code for this object.
no setterinherited
id int
final
isConnected bool
final
lastConnectedDate DateTime?
final
lastStatusUpdatedDate DateTime?
final
latestParameterUpdateDate DateTime?
final
maintenanceDate DateTime?
final
modelNumber String?
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serialNumber String
final
serviceAgreementStatus ServiceAgreementStatus?
final
status DeviceStatus
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({int? id, String? serialNumber, String? displayName, DeviceAddress? address, String? modelNumber, bool? isConnected, DeviceHost? deviceHost, DeviceStatus? status, bool? hasAcceptedPrivacyPolicy, DateTime? lastConnectedDate, DateTime? lastStatusUpdatedDate, DateTime? latestParameterUpdateDate, DateTime? maintenanceDate, int? alertCount, DealerOrg? dealerOrg}) Device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited