fm.liveswitch.CandidateInfo Class Reference

Candidate information. More...

Public Member Functions

 CandidateInfo ()
 Initializes a new instance of the fm.liveswitch.CandidateInfo class. More...
 
String getIPAddress ()
 Gets the candidate IP address. More...
 
fm.liveswitch.NullableInteger getPort ()
 Gets the candidate port. More...
 
fm.liveswitch.NullableLong getPriority ()
 Gets the candidate priority. More...
 
String getProtocol ()
 Gets the candidate protocol. More...
 
String getRelatedIPAddress ()
 Gets the candidate related IP address. More...
 
fm.liveswitch.NullableInteger getRelatedPort ()
 Gets the candidate related port. More...
 
String getRelayProtocol ()
 Gets the candidate relay protocol. More...
 
String getType ()
 Gets the candidate type. More...
 
void setIPAddress (String value)
 Sets the candidate IP address. More...
 
void setPort (fm.liveswitch.NullableInteger value)
 Sets the candidate port. More...
 
void setPriority (fm.liveswitch.NullableLong value)
 Sets the candidate priority. More...
 
void setProtocol (String value)
 Sets the candidate protocol. More...
 
void setRelatedIPAddress (String value)
 Sets the candidate related IP address. More...
 
void setRelatedPort (fm.liveswitch.NullableInteger value)
 Sets the candidate related port. More...
 
void setRelayProtocol (String value)
 Sets the candidate relay protocol. More...
 
void setType (String value)
 Sets the candidate type. 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.CandidateInfo fromJson (String candidateReportJson)
 Deserializes an instance from JSON. More...
 
static fm.liveswitch.CandidateInfo[] fromJsonArray (String candidateReportsJson)
 Deserializes an array from JSON. More...
 
static String toJson (fm.liveswitch.CandidateInfo candidateReport)
 Serializes an instance to JSON. More...
 
static String toJsonArray (fm.liveswitch.CandidateInfo[] candidateReports)
 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

Candidate information.

Constructor & Destructor Documentation

◆ CandidateInfo()

fm.liveswitch.CandidateInfo.CandidateInfo ( )

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

Member Function Documentation

◆ deserializeProperties()

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

Deserializes an instance from JSON.

Parameters
candidateReportJsonThe JSON.
Returns
The deserialized instance.

◆ fromJsonArray()

static fm.liveswitch.CandidateInfo [] fm.liveswitch.CandidateInfo.fromJsonArray ( String  candidateReportsJson)
static

Deserializes an array from JSON.

Parameters
candidateReportsJsonThe JSON.
Returns
The deserialized array.

◆ getIPAddress()

String fm.liveswitch.CandidateInfo.getIPAddress ( )

Gets the candidate IP address.

◆ getPort()

fm.liveswitch.NullableInteger fm.liveswitch.CandidateInfo.getPort ( )

Gets the candidate port.

◆ getPriority()

fm.liveswitch.NullableLong fm.liveswitch.CandidateInfo.getPriority ( )

Gets the candidate priority.

◆ getProtocol()

String fm.liveswitch.CandidateInfo.getProtocol ( )

Gets the candidate protocol.

◆ getRelatedIPAddress()

String fm.liveswitch.CandidateInfo.getRelatedIPAddress ( )

Gets the candidate related IP address.

◆ getRelatedPort()

fm.liveswitch.NullableInteger fm.liveswitch.CandidateInfo.getRelatedPort ( )

Gets the candidate related port.

◆ getRelayProtocol()

String fm.liveswitch.CandidateInfo.getRelayProtocol ( )

Gets the candidate relay protocol.

◆ getType()

String fm.liveswitch.CandidateInfo.getType ( )

Gets the candidate type.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.Info.

◆ setIPAddress()

void fm.liveswitch.CandidateInfo.setIPAddress ( String  value)

Sets the candidate IP address.

◆ setPort()

void fm.liveswitch.CandidateInfo.setPort ( fm.liveswitch.NullableInteger  value)

Sets the candidate port.

◆ setPriority()

void fm.liveswitch.CandidateInfo.setPriority ( fm.liveswitch.NullableLong  value)

Sets the candidate priority.

◆ setProtocol()

void fm.liveswitch.CandidateInfo.setProtocol ( String  value)

Sets the candidate protocol.

◆ setRelatedIPAddress()

void fm.liveswitch.CandidateInfo.setRelatedIPAddress ( String  value)

Sets the candidate related IP address.

◆ setRelatedPort()

void fm.liveswitch.CandidateInfo.setRelatedPort ( fm.liveswitch.NullableInteger  value)

Sets the candidate related port.

◆ setRelayProtocol()

void fm.liveswitch.CandidateInfo.setRelayProtocol ( String  value)

Sets the candidate relay protocol.

◆ setType()

void fm.liveswitch.CandidateInfo.setType ( String  value)

Sets the candidate type.

◆ toJson() [1/2]

String fm.liveswitch.CandidateInfo.toJson ( )

Serializes this instance to JSON.

◆ toJson() [2/2]

static String fm.liveswitch.CandidateInfo.toJson ( fm.liveswitch.CandidateInfo  candidateReport)
static

Serializes an instance to JSON.

Parameters
candidateReportThe instance.
Returns
The serialized JSON.

◆ toJsonArray()

static String fm.liveswitch.CandidateInfo.toJsonArray ( fm.liveswitch.CandidateInfo[]  candidateReports)
static

Serializes an array to JSON.

Parameters
candidateReportsThe array.
Returns
The serialized JSON.