fm.liveswitch.MediaSinkInfo Class Reference

Media sink information. More...

Public Member Functions

fm.liveswitch.FormatInfo getInputFormat ()
 Gets the media sink input format. More...
 
String getLabel ()
 Gets the media sink label. More...
 
String getOutputId ()
 Gets the media sink output id. More...
 
String getOutputName ()
 Gets the media sink output name. More...
 
String getTag ()
 Gets the media sink tag. More...
 
 MediaSinkInfo ()
 Initializes a new instance of the fm.liveswitch.MediaSinkInfo class. More...
 
void setInputFormat (fm.liveswitch.FormatInfo value)
 Sets the media sink input format. More...
 
void setLabel (String value)
 Sets the media sink label. More...
 
void setOutputId (String value)
 Sets the media sink output id. More...
 
void setOutputName (String value)
 Sets the media sink output name. More...
 
void setTag (String value)
 Sets the media sink 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.MediaSinkInfo fromJson (String mediaSinkInfoJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.MediaSinkInfo[] fromJsonArray (String mediaSinkInfosJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.MediaSinkInfo mediaSinkInfo)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.MediaSinkInfo[] mediaSinkInfos)
 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 sink information.

Constructor & Destructor Documentation

◆ MediaSinkInfo()

fm.liveswitch.MediaSinkInfo.MediaSinkInfo ( )

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

Member Function Documentation

◆ deserializeProperties()

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

Deserializes an instance from JSON.

Parameters
mediaSinkInfoJsonThe serialized JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.MediaSinkInfo [] fm.liveswitch.MediaSinkInfo.fromJsonArray ( String  mediaSinkInfosJson)
static

Deserializes an array from JSON.

Parameters
mediaSinkInfosJsonThe serialized JSON.
Returns
The deserialized array.

◆ getInputFormat()

fm.liveswitch.FormatInfo fm.liveswitch.MediaSinkInfo.getInputFormat ( )

Gets the media sink input format.

◆ getLabel()

String fm.liveswitch.MediaSinkInfo.getLabel ( )

Gets the media sink label.

◆ getOutputId()

String fm.liveswitch.MediaSinkInfo.getOutputId ( )

Gets the media sink output id.

◆ getOutputName()

String fm.liveswitch.MediaSinkInfo.getOutputName ( )

Gets the media sink output name.

◆ getTag()

String fm.liveswitch.MediaSinkInfo.getTag ( )

Gets the media sink tag.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Info.

◆ setInputFormat()

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

Sets the media sink input format.

◆ setLabel()

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

Sets the media sink label.

◆ setOutputId()

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

Sets the media sink output id.

◆ setOutputName()

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

Sets the media sink output name.

◆ setTag()

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

Sets the media sink tag.

◆ toJson() [1/2]

String fm.liveswitch.MediaSinkInfo.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.MediaSinkInfo.toJson ( fm.liveswitch.MediaSinkInfo  mediaSinkInfo)
static

Serializes an instance to JSON.

Parameters
mediaSinkInfoThe instance to serialize.
Returns
The serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.MediaSinkInfo.toJsonArray ( fm.liveswitch.MediaSinkInfo[]  mediaSinkInfos)
static

Serializes an array to JSON.

Parameters
mediaSinkInfosThe array to serialize.
Returns
The serialized JSON.