EGDL2 2.1
Loading...
Searching...
No Matches
Enablegames.BiometricData Class Reference

Class to store biometric datum, contains function to serialize and deserialize function to json string. More...

Inherits EnableSerializableValue.

Public Member Functions

 BiometricData ()
 Constructor.
 
void SetData (string name, float value, float settime=-1f)
 Sets the value of a particular biometric data entry.
 
string JSONString ()
 Returns a JSON string representation of the current BiometricData object.
 
string Serialize ()
 Serializes the instance of BiometricData to a JSON string.
 
object Deserialize (string json)
 Deserializes a JSON string into a BiometricData object.
 

Public Attributes

Dictionary< string, BiometricDatumdata
 Represents a dictionary of biometric data.
 
float time
 Represents the time when the values in the class is last changed.
 
bool moving = false
 Represents the state of whether the data is currently changing or not.
 

Detailed Description

Class to store biometric datum, contains function to serialize and deserialize function to json string.

See also
Enablegames.EnableSerializableValue

Constructor & Destructor Documentation

◆ BiometricData()

Enablegames.BiometricData.BiometricData ( )
inline

Constructor.

See also
Enablegames.EnableSerializableValue

Member Function Documentation

◆ Deserialize()

object Enablegames.BiometricData.Deserialize ( string json)
inline

Deserializes a JSON string into a BiometricData object.

Parameters
jsonThe JSON string to be deserialized.
Returns
A BiometricData object.

◆ JSONString()

string Enablegames.BiometricData.JSONString ( )
inline

Returns a JSON string representation of the current BiometricData object.

Returns
A JSON string representation of the current BiometricData object.

◆ Serialize()

string Enablegames.BiometricData.Serialize ( )
inline

Serializes the instance of BiometricData to a JSON string.

Returns
A JSON string representation of the BiometricData instance.

◆ SetData()

void Enablegames.BiometricData.SetData ( string name,
float value,
float settime = -1f )
inline

Sets the value of a particular biometric data entry.

Parameters
nameThe name of the biometric data entry.
valueThe new value for the biometric data entry.
settimeThe time at which the data is set. Default value is -1f.
Here is the call graph for this function:

Member Data Documentation

◆ data

Dictionary<string, BiometricDatum> Enablegames.BiometricData.data

Represents a dictionary of biometric data.

See also
Enablegames.EnableSerializableValue

The documentation for this class was generated from the following file: