\r\n

51Degrees Device Detection Node.js  4.4

51Degrees Device Detection for Node.js

SwigData Class Reference

Detailed Description

Extension of aspectData which stores the results created by the SWIG wrapper.

Inheritance diagram for SwigData:

[legend]

Collaboration diagram for SwigData:

[legend]

Public Member Functions

 constructor ({ flowElement, swigResults })
Constructor for SwigData. More...
 getInternal (key)
Retrieves elementData via the swigWrapper but also casts it to the correct type via a check of the engine's property list metadata. More...

Member Function Documentation

◆ constructor()

SwigData::constructor (   { flowElement, swigResults } )
inline

Constructor for SwigData.

Parameters
{object} - options options object
{FlowElement} - options.flowElement the FlowElement the data is part of
{ResultsHashSwig} - options.swigResults the results from the swig engine

◆ getInternal()

SwigData::getInternal (   key )
inline

Retrieves elementData via the swigWrapper but also casts it to the correct type via a check of the engine's property list metadata.

Parameters
{string} - key the property key to retrieve
Returns
{mixed} value property value