fm.liveswitch.DataChannelReport Class Reference

Data channel report. More...

Public Member Functions

 DataChannelReport ()
 Initializes a new instance of the fm.liveswitch.DataChannelReport class. More...
 
fm.liveswitch.NullableLong getBytesReceived ()
 Gets the number of bytes received on this data channel. More...
 
fm.liveswitch.NullableLong getBytesSent ()
 Gets the number of bytes sent on this data channel. More...
 
fm.liveswitch.NullableLong getMessagesReceived ()
 Gets the number of messages received on this data channel. More...
 
fm.liveswitch.NullableLong getMessagesSent ()
 Gets the number of messages sent on this data channel. More...
 
void setBytesReceived (fm.liveswitch.NullableLong value)
 Sets the number of bytes received on this data channel. More...
 
void setBytesSent (fm.liveswitch.NullableLong value)
 Sets the number of bytes sent on this data channel. More...
 
void setMessagesReceived (fm.liveswitch.NullableLong value)
 Sets the number of messages received on this data channel. More...
 
void setMessagesSent (fm.liveswitch.NullableLong value)
 Sets the number of messages sent on this data channel. More...
 
String toJson ()
 Serializes this instance to Json. More...
 

Static Public Member Functions

static fm.liveswitch.DataChannelReport fromJson (String dataChannelReportJson)
 Deserializes Json to a DataChannelReport. More...
 
static String toJson (fm.liveswitch.DataChannelReport dataChannelReport)
 Serializes an instance to Json. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Report
static< T extends fm.liveswitch.IEquivalent< T > T[] processArray (T[] newValues, T[] oldValues)
 Processes an array for a report. More...
 
static fm.liveswitch.NullableBoolean processBoolean (boolean newValue, boolean oldValue)
 Processes a boolean for a report. More...
 
static boolean[] processBooleanArray (boolean[] newValues, boolean[] oldValues)
 Processes a boolean array for a report. More...
 
static fm.liveswitch.NullableDouble processDouble (double newValue, double oldValue)
 Processes a double for a report. More...
 
static fm.liveswitch.NullableFloat processFloat (float newValue, float oldValue)
 Processes a float for a report. More...
 
static float[] processFloatArray (float[] newValues, float[] oldValues)
 Processes a float array for a report. More...
 
static double[] processFloatArray (double[] newValues, double[] oldValues)
 Processes a double array for a report. More...
 
static fm.liveswitch.NullableInteger processInteger (int newValue, int oldValue)
 Processes an integer for a report. More...
 
static int[] processIntegerArray (int[] newValues, int[] oldValues)
 Processes a integer array for a report. More...
 
static fm.liveswitch.NullableLong processLong (long newValue, long oldValue)
 Processes a long for a report. More...
 
static long[] processLongArray (long[] newValues, long[] oldValues)
 Processes a long array for a report. More...
 
static< T extends Object &fm.liveswitch.IEquivalent< T > T processObject (T newValue, T oldValue)
 Processes an array for a report. More...
 
static fm.liveswitch.NullableShort processShort (short newValue, short oldValue)
 Processes a short for a report. More...
 
static short[] processShortArray (short[] newValues, short[] oldValues)
 Processes a short array for a report. More...
 
static String processString (String newValue, String oldValue)
 Processes a string for a report. More...
 

Protected Member Functions

void deserializeProperties (String key, String valueJson)
 Deserializes the properties. More...
 
void serializeProperties (java.util.HashMap< String, String > jsonObject)
 Serializes the properties. More...
 
- Protected Member Functions inherited from fm.liveswitch.Report
 Report ()
 

Detailed Description

Data channel report.

Constructor & Destructor Documentation

◆ DataChannelReport()

fm.liveswitch.DataChannelReport.DataChannelReport ( )

Initializes a new instance of the fm.liveswitch.DataChannelReport class.

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.DataChannelReport.deserializeProperties ( String  key,
String  valueJson 
)
protected

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.Report.

◆ fromJson()

static fm.liveswitch.DataChannelReport fm.liveswitch.DataChannelReport.fromJson ( String  dataChannelReportJson)
static

Deserializes Json to a DataChannelReport.

Parameters
dataChannelReportJsonThe serialized Json.
Returns
The deserialized DataChannelReport.

◆ getBytesReceived()

fm.liveswitch.NullableLong fm.liveswitch.DataChannelReport.getBytesReceived ( )

Gets the number of bytes received on this data channel.

◆ getBytesSent()

fm.liveswitch.NullableLong fm.liveswitch.DataChannelReport.getBytesSent ( )

Gets the number of bytes sent on this data channel.

◆ getMessagesReceived()

fm.liveswitch.NullableLong fm.liveswitch.DataChannelReport.getMessagesReceived ( )

Gets the number of messages received on this data channel.

◆ getMessagesSent()

fm.liveswitch.NullableLong fm.liveswitch.DataChannelReport.getMessagesSent ( )

Gets the number of messages sent on this data channel.

◆ serializeProperties()

void fm.liveswitch.DataChannelReport.serializeProperties ( java.util.HashMap< String, String >  jsonObject)
protected

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Report.

◆ setBytesReceived()

void fm.liveswitch.DataChannelReport.setBytesReceived ( fm.liveswitch.NullableLong  value)

Sets the number of bytes received on this data channel.

◆ setBytesSent()

void fm.liveswitch.DataChannelReport.setBytesSent ( fm.liveswitch.NullableLong  value)

Sets the number of bytes sent on this data channel.

◆ setMessagesReceived()

void fm.liveswitch.DataChannelReport.setMessagesReceived ( fm.liveswitch.NullableLong  value)

Sets the number of messages received on this data channel.

◆ setMessagesSent()

void fm.liveswitch.DataChannelReport.setMessagesSent ( fm.liveswitch.NullableLong  value)

Sets the number of messages sent on this data channel.

◆ toJson() [1/2]

String fm.liveswitch.DataChannelReport.toJson ( )

Serializes this instance to Json.

◆ toJson() [2/2]

static String fm.liveswitch.DataChannelReport.toJson ( fm.liveswitch.DataChannelReport  dataChannelReport)
static

Serializes an instance to Json.

Parameters
dataChannelReportThe instance to serialize.
Returns
Serialized Json.