ScpResponseDiscover class Null safety

Implemented types

Constructors

ScpResponseDiscover({String deviceId = '', String deviceType = '', String deviceName = '', int currentPasswordNumber = 0, String hmac = '', List<String> controlActions = const [], List<String> measureActions = const []})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

getControlActions() List<String>
getCurrentPasswordNumber() int
getDeviceId() String
getDeviceName() String
getDeviceType() String
getHmac() String
getMeasureActions() List<String>
isValid() bool
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(dynamic json, List<ScpDevice> devices, bool verifyHmac) Future<ScpResponseDiscover>
Returns a ScpResponseDiscover if HMAC valid, otherwise null

Constants

type → const String
"discover-response"