/ fm / liveswitch / NetworkInfo
Class: NetworkInfo
fm.liveswitch.NetworkInfo
Network information.
Hierarchy
NetworkInfo
Table of contents
Constructors
Methods
- deserializeProperties
- getIPAddresses
- getPorts
- getTypeString
- serializeProperties
- setIPAddresses
- setPorts
- toJson
- fromJson
- toJson
Constructors
constructor
+ new NetworkInfo(): NetworkInfo
Returns: NetworkInfo
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:15
Methods
deserializeProperties
▸ Protected
deserializeProperties(key
: string, valueJson
: string): void
Deserializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
key |
string | The key. |
valueJson |
string | The value in JSON format. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:69
getIPAddresses
▸ getIPAddresses(): string[]
Gets the IP addresses.
Returns: string[]
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:90
getPorts
▸ getPorts(): number[]
Gets the ports.
Returns: number[]
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:102
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:9
serializeProperties
▸ Protected
serializeProperties(jsonObject
: Hash<string, string>): void
Serializes the properties.
Parameters:
Name | Type | Description |
---|---|---|
jsonObject |
Hash<string, string> | The JSON object. |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:115
setIPAddresses
▸ setIPAddresses(value
: string[]): void
Sets the IP addresses.
Parameters:
Name | Type |
---|---|
value |
string[] |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:132
setPorts
▸ setPorts(value
: number[]): void
Sets the ports.
Parameters:
Name | Type |
---|---|
value |
number[] |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:144
toJson
▸ toJson(): string
Serializes this instance to Json.
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:156
fromJson
▸ Static
fromJson(networkInfoJson
: string): NetworkInfo
Deserializes Json to a GatewayInfo.
Parameters:
Name | Type | Description |
---|---|---|
networkInfoJson |
string | The serialized Json. |
Returns: NetworkInfo
The deserialized GatewayInfo.
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:35
toJson
▸ Static
toJson(networkInfo
: NetworkInfo): string
Serializes an instance to Json.
Parameters:
Name | Type | Description |
---|---|---|
networkInfo |
NetworkInfo | The instance to serialize. |
Returns: string
Serialized Json.
Defined in: Generated/TypeScript/fm.liveswitch/NetworkInfo.ts:53