\r\n

51Degrees Device Detection .NET  4.4

Device detection services for 51Degrees Pipeline

FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase Class Reference abstract

Detailed Description

Base class for nodes in the decision tree used by AppleDecisionTree.

Inheritance diagram for FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase:

[legend]

Collaboration diagram for FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase:

[legend]

Public Member Functions

abstract bool  Match (object evidenceValue)
The method to use to check if the supplied value matches this node. More...
void  AddChild (IAppleDecisionTreeNode child)
Add the specified node as a child. More...

Properties

uint?  ProfileId [get, set]
The hardware profile Id to return if the evaluation reaches this node but matches no further children. More...
string  EvidenceKey [get, set]
The key of the evidence value to use to evaluate against the child nodes. More...
IReadOnlyList< IAppleDecisionTreeNode >  Children [get]
The child nodes More...

Properties inherited from FiftyOne.DeviceDetection.Apple.IAppleDecisionTreeNode

uint?  ProfileId [get, set]
string  EvidenceKey [get, set]
IReadOnlyList< IAppleDecisionTreeNode >  Children [get]

Member Function Documentation

◆ Match()

abstract bool FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase.Match ( object   evidenceValue )
pure virtual

The method to use to check if the supplied value matches this node.

Parameters
evidenceValue - The evidence value to compare against
Returns
True if the supplied evidence value matches the expected value for this node.

Implements FiftyOne.DeviceDetection.Apple.IAppleDecisionTreeNode.

Implemented in FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeRange, and FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNode.

Property Documentation

◆ Children

IReadOnlyList<IAppleDecisionTreeNode> FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase.Children
get

The child nodes

◆ EvidenceKey

string FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase.EvidenceKey
get set

The key of the evidence value to use to evaluate against the child nodes.

◆ ProfileId

uint? FiftyOne.DeviceDetection.Apple.AppleDecisionTreeNodeBase.ProfileId
get set

The hardware profile Id to return if the evaluation reaches this node but matches no further children.