DeviceNode class
Grant access to methods relating device.
@param storageController- Inheritance
-
- Object
- RecommendationNode
- DeviceNode
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< Recommendation> > -
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
-
getDeviceThreatRecommendation(
{String language = "en"}) → Future< List< Recommendation> > - get deviceRecommendation from :device node
-
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
-
getThreatRecommendation(
{String language = "en", required String recommendationType}) → Future< List< Recommendation> > -
get list of threat recommendation
inherited
-
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 Recommendation recommendation}) → Future< bool> - set device ImplementedRecommendation @param recommendationId as string @return bool
-
setDeviceRecommendation(
{Locale? language}) → Future< void> - get DeviceRecommendation from recommendation node and set in :device node
-
setGeigerScoreDevice(
{Locale? language, required GeigerScoreThreats geigerScoreThreats}) → void - set GeigerDeviceScore.
-
setGlobalRecommendationsNode(
{Locale? language, required List< Recommendation> 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