fm.liveswitch.NetworkInfo Class Reference

Network information. More...

Public Member Functions

String[] getIPAddresses ()
 Gets the IP addresses. More...
 
int[] getPorts ()
 Gets the ports. More...
 
 NetworkInfo ()
 
void setIPAddresses (String[] value)
 Sets the IP addresses. More...
 
void setPorts (int[] value)
 Sets the ports. More...
 
String toJson ()
 Serializes this instance to Json. More...
 

Static Public Member Functions

static fm.liveswitch.NetworkInfo fromJson (String networkInfoJson)
 Deserializes Json to a GatewayInfo. More...
 
static String toJson (fm.liveswitch.NetworkInfo networkInfo)
 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...
 

Detailed Description

Network information.

Constructor & Destructor Documentation

◆ NetworkInfo()

fm.liveswitch.NetworkInfo.NetworkInfo ( )

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.

◆ fromJson()

static fm.liveswitch.NetworkInfo fm.liveswitch.NetworkInfo.fromJson ( String  networkInfoJson)
static

Deserializes Json to a GatewayInfo.

Parameters
networkInfoJsonThe serialized Json.
Returns
The deserialized GatewayInfo.

Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.

◆ getIPAddresses()

String [] fm.liveswitch.NetworkInfo.getIPAddresses ( )

Gets the IP addresses.

◆ getPorts()

int [] fm.liveswitch.NetworkInfo.getPorts ( )

Gets the ports.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.

◆ setIPAddresses()

void fm.liveswitch.NetworkInfo.setIPAddresses ( String[]  value)

Sets the IP addresses.

◆ setPorts()

void fm.liveswitch.NetworkInfo.setPorts ( int[]  value)

Sets the ports.

◆ toJson() [1/2]

String fm.liveswitch.NetworkInfo.toJson ( )

Serializes this instance to Json.

◆ toJson() [2/2]

static String fm.liveswitch.NetworkInfo.toJson ( fm.liveswitch.NetworkInfo  networkInfo)
static

Serializes an instance to Json.

Parameters
networkInfoThe instance to serialize.
Returns
Serialized Json.