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... | |
Network information.
fm.liveswitch.NetworkInfo.NetworkInfo | ( | ) |
|
protected |
Deserializes the properties.
key | The key. |
valueJson | The value in JSON format. |
Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.
|
static |
Deserializes Json to a GatewayInfo.
networkInfoJson | The serialized Json. |
Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.
String [] fm.liveswitch.NetworkInfo.getIPAddresses | ( | ) |
Gets the IP addresses.
int [] fm.liveswitch.NetworkInfo.getPorts | ( | ) |
Gets the ports.
|
protected |
Serializes the properties.
jsonObject | The JSON object. |
Reimplemented in fm.liveswitch.InternalNetworkInfo, and fm.liveswitch.ExternalNetworkInfo.
void fm.liveswitch.NetworkInfo.setIPAddresses | ( | String[] | value | ) |
Sets the IP addresses.
void fm.liveswitch.NetworkInfo.setPorts | ( | int[] | value | ) |
Sets the ports.
String fm.liveswitch.NetworkInfo.toJson | ( | ) |
Serializes this instance to Json.
|
static |