fm.liveswitch.ExternalNetworkInfo Class Reference

External network information. More...

Public Member Functions

 ExternalNetworkInfo ()
 
String getPublicHostname ()
 Gets the public hostname. More...
 
String getPublicIPAddress ()
 Gets the public IP address. More...
 
void setPublicHostname (String value)
 Sets the public hostname. More...
 
void setPublicIPAddress (String value)
 Sets the public IP address. More...
 
- Public Member Functions inherited from fm.liveswitch.NetworkInfo
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.ExternalNetworkInfo fromJson (String networkInfoJson)
 Deserializes Json to a ExternalNetworkInfo. More...
 
static String toJson (fm.liveswitch.ExternalNetworkInfo networkInfo)
 Serializes an instance to Json. More...
 
- Static Public Member Functions inherited from fm.liveswitch.NetworkInfo
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

External network information.

Constructor & Destructor Documentation

◆ ExternalNetworkInfo()

fm.liveswitch.ExternalNetworkInfo.ExternalNetworkInfo ( )

Member Function Documentation

◆ deserializeProperties()

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

Deserializes the properties.

Parameters
keyThe key.
valueJsonThe value in JSON format.

Reimplemented from fm.liveswitch.NetworkInfo.

◆ fromJson()

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

Deserializes Json to a ExternalNetworkInfo.

Parameters
networkInfoJsonThe serialized Json.
Returns
The deserialized ExternalNetworkInfo.

Reimplemented from fm.liveswitch.NetworkInfo.

◆ getPublicHostname()

String fm.liveswitch.ExternalNetworkInfo.getPublicHostname ( )

Gets the public hostname.

◆ getPublicIPAddress()

String fm.liveswitch.ExternalNetworkInfo.getPublicIPAddress ( )

Gets the public IP address.

◆ serializeProperties()

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

Serializes the properties.

Parameters
jsonObjectThe JSON object.

Reimplemented from fm.liveswitch.NetworkInfo.

◆ setPublicHostname()

void fm.liveswitch.ExternalNetworkInfo.setPublicHostname ( String  value)

Sets the public hostname.

◆ setPublicIPAddress()

void fm.liveswitch.ExternalNetworkInfo.setPublicIPAddress ( String  value)

Sets the public IP address.

◆ toJson()

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

Serializes an instance to Json.

Parameters
networkInfoThe instance to serialize.
Returns
Serialized Json.