fm.liveswitch.MediaSenderInfo Class Reference

Media sender information. More...

Public Member Functions

fm.liveswitch.MediaSenderReport getReport ()
 Gets report. More...
 
fm.liveswitch.MediaSourceInfo getSource ()
 Gets source. More...
 
 MediaSenderInfo ()
 Initializes a new instance of the fm.liveswitch.MediaSenderInfo class. More...
 
void setReport (fm.liveswitch.MediaSenderReport value)
 Sets report. More...
 
void setSource (fm.liveswitch.MediaSourceInfo value)
 Sets source. More...
 
String toJson ()
 Serializes this instance to JSON. More...
 
- Public Member Functions inherited from fm.liveswitch.MediaComponentInfo
fm.liveswitch.CodecInfo getCodec ()
 Gets codec. More...
 
fm.liveswitch.NullableLong getSynchronizationSource ()
 Gets synchronization source of media track. More...
 
fm.liveswitch.MediaTrackInfo getTrack ()
 Gets track. More...
 
 MediaComponentInfo ()
 Initializes a new instance of the fm.liveswitch.MediaComponentInfo class. More...
 
 MediaComponentInfo (fm.liveswitch.MediaComponentStats stats, fm.liveswitch.MediaComponentStats lastStats)
 Initializes a new instance of the fm.liveswitch.MediaComponentInfo class. More...
 
void setCodec (fm.liveswitch.CodecInfo value)
 Sets codec. More...
 
void setSynchronizationSource (fm.liveswitch.NullableLong value)
 Sets synchronization source of media track. More...
 
void setTrack (fm.liveswitch.MediaTrackInfo value)
 Sets track. 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.MediaSenderInfo fromJson (String mediaSenderJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.MediaSenderInfo[] fromJsonArray (String mediaSendersJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.MediaSenderInfo mediaSender)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.MediaSenderInfo[] mediaSenders)
 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 sender information.

Constructor & Destructor Documentation

◆ MediaSenderInfo()

fm.liveswitch.MediaSenderInfo.MediaSenderInfo ( )

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

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.MediaComponentInfo.

◆ fromJson()

static fm.liveswitch.MediaSenderInfo fm.liveswitch.MediaSenderInfo.fromJson ( String  mediaSenderJson)
static

Deserializes an instance from JSON.

Parameters
mediaSenderJsonThe serialized JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.MediaSenderInfo [] fm.liveswitch.MediaSenderInfo.fromJsonArray ( String  mediaSendersJson)
static

Deserializes an array from JSON.

Parameters
mediaSendersJsonThe serialized JSON.
Returns
The deserialized array.

◆ getReport()

fm.liveswitch.MediaSenderReport fm.liveswitch.MediaSenderInfo.getReport ( )

Gets report.

◆ getSource()

fm.liveswitch.MediaSourceInfo fm.liveswitch.MediaSenderInfo.getSource ( )

Gets source.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.MediaComponentInfo.

◆ setReport()

void fm.liveswitch.MediaSenderInfo.setReport ( fm.liveswitch.MediaSenderReport  value)

Sets report.

◆ setSource()

void fm.liveswitch.MediaSenderInfo.setSource ( fm.liveswitch.MediaSourceInfo  value)

Sets source.

◆ toJson() [1/2]

String fm.liveswitch.MediaSenderInfo.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.MediaSenderInfo.toJson ( fm.liveswitch.MediaSenderInfo  mediaSender)
static

Serializes an instance to JSON.

Parameters
mediaSenderThe instance to serialize.
Returns
The serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.MediaSenderInfo.toJsonArray ( fm.liveswitch.MediaSenderInfo[]  mediaSenders)
static

Serializes an array to JSON.

Parameters
mediaSendersThe array to serialize.
Returns
The serialized JSON.