fm.liveswitch.MediaSinkStats Class Reference

Media sink stats. More...

Public Member Functions

fm.liveswitch.FormatInfo getInputFormat ()
 Gets the input format. More...
 
String getLabel ()
 Gets the label. More...
 
boolean getMuted ()
 Gets the muted flag. More...
 
String getOutputId ()
 Gets the output identifier. More...
 
String getOutputName ()
 Gets the output name. More...
 
String getTag ()
 Gets the tag. More...
 
boolean isEquivalent (fm.liveswitch.MediaSinkStats instance)
 Checks if a source is equivalent to this one. More...
 
 MediaSinkStats ()
 
void setInputFormat (fm.liveswitch.FormatInfo value)
 Sets the input format. More...
 
void setLabel (String value)
 Sets the label. More...
 
void setMuted (boolean value)
 Sets the muted flag. More...
 
void setOutputId (String value)
 Sets the output identifier. More...
 
void setOutputName (String value)
 Sets the output name. More...
 
void setTag (String value)
 Sets the tag. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.BaseStats
String getId ()
 Gets the identifier of the object generating these stats. More...
 
java.util.Date getTimestamp ()
 Gets the timestamp when these stats were generated. More...
 
- Public Member Functions inherited from fm.liveswitch.IEquivalent< fm.liveswitch.MediaSinkStats >
abstract boolean isEquivalent (T instance)
 Checks if an instance is equivalent to this one. More...
 

Static Public Member Functions

static fm.liveswitch.MediaSinkStats fromJson (String instanceJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.MediaSinkStats[] fromJsonArray (String arrayJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.MediaSinkStats instance)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.MediaSinkStats[] array)
 Serializes an array to JSON. 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.BaseStats
 BaseStats ()
 

Detailed Description

Media sink stats.

Constructor & Destructor Documentation

◆ MediaSinkStats()

fm.liveswitch.MediaSinkStats.MediaSinkStats ( )

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.BaseStats.

◆ fromJson()

static fm.liveswitch.MediaSinkStats fm.liveswitch.MediaSinkStats.fromJson ( String  instanceJson)
static

Deserializes an instance from JSON.

Parameters
instanceJsonThe serialized JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.MediaSinkStats [] fm.liveswitch.MediaSinkStats.fromJsonArray ( String  arrayJson)
static

Deserializes an array from JSON.

Parameters
arrayJsonThe serialized JSON.
Returns
The deserialized array.

◆ getInputFormat()

fm.liveswitch.FormatInfo fm.liveswitch.MediaSinkStats.getInputFormat ( )

Gets the input format.

◆ getLabel()

String fm.liveswitch.MediaSinkStats.getLabel ( )

Gets the label.

◆ getMuted()

boolean fm.liveswitch.MediaSinkStats.getMuted ( )

Gets the muted flag.

◆ getOutputId()

String fm.liveswitch.MediaSinkStats.getOutputId ( )

Gets the output identifier.

◆ getOutputName()

String fm.liveswitch.MediaSinkStats.getOutputName ( )

Gets the output name.

◆ getTag()

String fm.liveswitch.MediaSinkStats.getTag ( )

Gets the tag.

◆ isEquivalent()

boolean fm.liveswitch.MediaSinkStats.isEquivalent ( fm.liveswitch.MediaSinkStats  instance)

Checks if a source is equivalent to this one.

Parameters
instanceThe source.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ setInputFormat()

void fm.liveswitch.MediaSinkStats.setInputFormat ( fm.liveswitch.FormatInfo  value)

Sets the input format.

◆ setLabel()

void fm.liveswitch.MediaSinkStats.setLabel ( String  value)

Sets the label.

◆ setMuted()

void fm.liveswitch.MediaSinkStats.setMuted ( boolean  value)

Sets the muted flag.

◆ setOutputId()

void fm.liveswitch.MediaSinkStats.setOutputId ( String  value)

Sets the output identifier.

◆ setOutputName()

void fm.liveswitch.MediaSinkStats.setOutputName ( String  value)

Sets the output name.

◆ setTag()

void fm.liveswitch.MediaSinkStats.setTag ( String  value)

Sets the tag.

◆ toJson() [1/2]

String fm.liveswitch.MediaSinkStats.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.MediaSinkStats.toJson ( fm.liveswitch.MediaSinkStats  instance)
static

Serializes an instance to JSON.

Parameters
instanceThe instance to serialize.
Returns
Serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.MediaSinkStats.toJsonArray ( fm.liveswitch.MediaSinkStats[]  array)
static

Serializes an array to JSON.

Parameters
arrayThe array to serialize.
Returns
The serialized JSON.