fm.liveswitch.MediaSourceInfo Class Reference

Media source information. More...

Public Member Functions

String getInputId ()
 Gets the media source input identifier. More...
 
String getInputName ()
 Gets the media source input name. More...
 
String getLabel ()
 Gets the media source label. More...
 
fm.liveswitch.NullableBoolean getMuted ()
 Gets the whether the media source is muted. More...
 
fm.liveswitch.FormatInfo getOutputFormat ()
 Gets the media source output format. More...
 
String getTag ()
 Gets the media source tag. More...
 
 MediaSourceInfo ()
 Initializes a new instance of the fm.liveswitch.MediaSourceInfo class. More...
 
void setInputId (String value)
 Sets the media source input identifier. More...
 
void setInputName (String value)
 Sets the media source input name. More...
 
void setLabel (String value)
 Sets the media source label. More...
 
void setMuted (fm.liveswitch.NullableBoolean value)
 Sets the whether the media source is muted. More...
 
void setOutputFormat (fm.liveswitch.FormatInfo value)
 Sets the media source output format. More...
 
void setTag (String value)
 Sets the media source tag. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.Info
String getId ()
 Gets the identifier. More...
 
void setId (String value)
 Sets the identifier. More...
 

Static Public Member Functions

static fm.liveswitch.MediaSourceInfo fromJson (String mediaSourceInfoJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.MediaSourceInfo[] fromJsonArray (String mediaSourceInfosJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.MediaSourceInfo mediaSourceInfo)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.MediaSourceInfo[] mediaSourceInfos)
 Serializes an array to JSON. More...
 
- Static Public Member Functions inherited from fm.liveswitch.Info
static< T extends fm.liveswitch.IEquivalent< T > T[] processArray (T[] newValues, T[] oldValues)
 Processes an array for an info. More...
 
static fm.liveswitch.NullableBoolean processBoolean (boolean newValue, boolean oldValue)
 Processes a boolean for an info. More...
 
static boolean[] processBooleanArray (boolean[] newValues, boolean[] oldValues)
 Processes a boolean array for an info. More...
 
static fm.liveswitch.NullableDouble processDouble (double newValue, double oldValue)
 Processes a double for an info. More...
 
static fm.liveswitch.NullableFloat processFloat (float newValue, float oldValue)
 Processes a float for an info. More...
 
static float[] processFloatArray (float[] newValues, float[] oldValues)
 Processes a float array for an info. More...
 
static double[] processFloatArray (double[] newValues, double[] oldValues)
 Processes a double array for an info. More...
 
static fm.liveswitch.NullableInteger processInteger (int newValue, int oldValue)
 Processes an integer for an info. More...
 
static int[] processIntegerArray (int[] newValues, int[] oldValues)
 Processes a integer array for an info. More...
 
static fm.liveswitch.NullableLong processLong (long newValue, long oldValue)
 Processes a long for an info. More...
 
static long[] processLongArray (long[] newValues, long[] oldValues)
 Processes a long array for an info. More...
 
static< T extends Object &fm.liveswitch.IEquivalent< T > T processObject (T newValue, T oldValue)
 Processes an object for an info. More...
 
static fm.liveswitch.NullableShort processShort (short newValue, short oldValue)
 Processes a short for an info. More...
 
static short[] processShortArray (short[] newValues, short[] oldValues)
 Processes a short array for an info. More...
 
static String processString (String newValue, String oldValue)
 Processes a string for an info. 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.Info
 Info ()
 

Detailed Description

Media source information.

Constructor & Destructor Documentation

◆ MediaSourceInfo()

fm.liveswitch.MediaSourceInfo.MediaSourceInfo ( )

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

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.Info.

◆ fromJson()

static fm.liveswitch.MediaSourceInfo fm.liveswitch.MediaSourceInfo.fromJson ( String  mediaSourceInfoJson)
static

Deserializes an instance from JSON.

Parameters
mediaSourceInfoJsonThe serialized JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.MediaSourceInfo [] fm.liveswitch.MediaSourceInfo.fromJsonArray ( String  mediaSourceInfosJson)
static

Deserializes an array from JSON.

Parameters
mediaSourceInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ getInputId()

String fm.liveswitch.MediaSourceInfo.getInputId ( )

Gets the media source input identifier.

◆ getInputName()

String fm.liveswitch.MediaSourceInfo.getInputName ( )

Gets the media source input name.

◆ getLabel()

String fm.liveswitch.MediaSourceInfo.getLabel ( )

Gets the media source label.

◆ getMuted()

fm.liveswitch.NullableBoolean fm.liveswitch.MediaSourceInfo.getMuted ( )

Gets the whether the media source is muted.

◆ getOutputFormat()

fm.liveswitch.FormatInfo fm.liveswitch.MediaSourceInfo.getOutputFormat ( )

Gets the media source output format.

◆ getTag()

String fm.liveswitch.MediaSourceInfo.getTag ( )

Gets the media source tag.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Info.

◆ setInputId()

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

Sets the media source input identifier.

◆ setInputName()

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

Sets the media source input name.

◆ setLabel()

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

Sets the media source label.

◆ setMuted()

void fm.liveswitch.MediaSourceInfo.setMuted ( fm.liveswitch.NullableBoolean  value)

Sets the whether the media source is muted.

◆ setOutputFormat()

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

Sets the media source output format.

◆ setTag()

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

Sets the media source tag.

◆ toJson() [1/2]

String fm.liveswitch.MediaSourceInfo.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.MediaSourceInfo.toJson ( fm.liveswitch.MediaSourceInfo  mediaSourceInfo)
static

Serializes an instance to JSON.

Parameters
mediaSourceInfoThe instance to serialize.
Returns
The serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.MediaSourceInfo.toJsonArray ( fm.liveswitch.MediaSourceInfo[]  mediaSourceInfos)
static

Serializes an array to JSON.

Parameters
mediaSourceInfosThe array to serialize.
Returns
The serialized JSON.