DeviceNode class

Grant access to methods relating device.

@param storageController
Inheritance

Constructors

DeviceNode(StorageController _storageController)

Properties

getDeviceInfo Future<Device>
get current device info from :local value 'currentDeviceNew' @return device object @throws :Local not found on StorageException
no setter
getRecommendations Future<List<GeigerRecommendation>>
from return list of recommendations from localStorage
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
localNodeValue ↔ NodeValue?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getGeigerRecommendation({required Threat threat, required List<Recommendations> r}) Future<GeigerRecommendation>
get list of threat recommendation
inherited
getGeigerScoreDeviceThreatScores({String language = "en"}) Future<GeigerScoreThreats>
// @param optional language as string // @return GeigerScore as String from GeigerScoreDevice Node // @throw Node not found on StorageException @param optional language as string @return list of threatScore object from GeigerScoreDevice @throw node not found on StorageException
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentDeviceInfo(Device currentDeviceInfo) Future<void>
set deviceInfo in currentDeviceNew NodeValue in :Local
setDeviceImplementedRecommendation({required Recommendations recommendation}) Future<bool>
set device ImplementedRecommendation @param recommendationId as string @return bool
setGeigerScoreDevice({Locale? language, required GeigerScoreThreats geigerScoreThreats}) → void
set GeigerDeviceScore.
setGlobalRecommendationsNode({Locale? language, required List<Threat> relatedThreat, required List<Recommendations> recommendations}) Future<void>
set all recommendations in Global:recommendations node.
inherited
toString() String
A string representation of this object.
inherited

Operators

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