Class NetworkInfo
Network information.
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class NetworkInfo : object
Properties
IPAddresses
Gets or sets the IP addresses.
Declaration
public string[] IPAddresses { get; set; }
Property Value
Type | Description |
---|---|
System. |
Ports
Gets or sets the ports.
Declaration
public int[] Ports { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected virtual void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
key | The key. |
System. |
valueJson | The value in JSON format. |
FromJson(String)
Deserializes Json to a GatewayInfo.
Declaration
public static NetworkInfo FromJson(string networkInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System. |
networkInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
Network |
The deserialized GatewayInfo. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected virtual void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<System. |
jsonObject | The JSON object. |
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System. |
ToJson(NetworkInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(NetworkInfo networkInfo)
Parameters
Type | Name | Description |
---|---|---|
Network |
networkInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System. |
Serialized Json. |