fm.liveswitch.MediaSourceStats Class Reference

Media source stats. More...

Public Member Functions

String getInputId ()
 Gets the input identifier. More...
 
String getInputName ()
 Gets the input name. More...
 
String getLabel ()
 Gets the label. More...
 
boolean getMuted ()
 Gets the muted flag. More...
 
fm.liveswitch.FormatInfo getOutputFormat ()
 Gets the output format. More...
 
String getTag ()
 Gets the tag. More...
 
boolean isEquivalent (fm.liveswitch.MediaSourceStats instance)
 Checks if a source is equivalent to this one. More...
 
 MediaSourceStats ()
 
void setInputId (String value)
 Sets the input identifier. More...
 
void setInputName (String value)
 Sets the input name. More...
 
void setLabel (String value)
 Sets the label. More...
 
void setMuted (boolean value)
 Sets the muted flag. More...
 
void setOutputFormat (fm.liveswitch.FormatInfo value)
 Sets the output format. 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.MediaSourceStats >
abstract boolean isEquivalent (T instance)
 Checks if an instance is equivalent to this one. More...
 

Static Public Member Functions

static fm.liveswitch.MediaSourceStats fromJson (String instanceJson)
 Deserializes an instance from JSON. More...
 
static String toJson (fm.liveswitch.MediaSourceStats instance)
 Serializes an instance 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 source stats.

Constructor & Destructor Documentation

◆ MediaSourceStats()

fm.liveswitch.MediaSourceStats.MediaSourceStats ( )

Member Function Documentation

◆ deserializeProperties()

void fm.liveswitch.MediaSourceStats.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.MediaSourceStats fm.liveswitch.MediaSourceStats.fromJson ( String  instanceJson)
static

Deserializes an instance from JSON.

Parameters
instanceJsonThe serialized Json.
Returns
The deserialized VideoSourceInfo.

◆ getInputId()

String fm.liveswitch.MediaSourceStats.getInputId ( )

Gets the input identifier.

◆ getInputName()

String fm.liveswitch.MediaSourceStats.getInputName ( )

Gets the input name.

◆ getLabel()

String fm.liveswitch.MediaSourceStats.getLabel ( )

Gets the label.

◆ getMuted()

boolean fm.liveswitch.MediaSourceStats.getMuted ( )

Gets the muted flag.

◆ getOutputFormat()

fm.liveswitch.FormatInfo fm.liveswitch.MediaSourceStats.getOutputFormat ( )

Gets the output format.

◆ getTag()

String fm.liveswitch.MediaSourceStats.getTag ( )

Gets the tag.

◆ isEquivalent()

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

Checks if a source is equivalent to this one.

Parameters
instanceThe source.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.BaseStats.

◆ setInputId()

void fm.liveswitch.MediaSourceStats.setInputId ( String  value)

Sets the input identifier.

◆ setInputName()

void fm.liveswitch.MediaSourceStats.setInputName ( String  value)

Sets the input name.

◆ setLabel()

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

Sets the label.

◆ setMuted()

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

Sets the muted flag.

◆ setOutputFormat()

void fm.liveswitch.MediaSourceStats.setOutputFormat ( fm.liveswitch.FormatInfo  value)

Sets the output format.

◆ setTag()

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

Sets the tag.

◆ toJson() [1/2]

String fm.liveswitch.MediaSourceStats.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

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

Serializes an instance to JSON.

Parameters
instanceThe instance to serialize.
Returns
Serialized Json.