Class NetworkInfo
Network information.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class NetworkInfo
Properties
IPAddresses
Gets or sets the IP addresses.
Declaration
public string[] IPAddresses { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Ports
Gets or sets the ports.
Declaration
public int[] Ports { get; set; }
Property Value
Type | Description |
---|---|
System.Int32[] |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected virtual void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | 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.String | networkInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
NetworkInfo | The deserialized GatewayInfo. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected virtual void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
ToJson()
Serializes this instance to Json.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(NetworkInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(NetworkInfo networkInfo)
Parameters
Type | Name | Description |
---|---|---|
NetworkInfo | networkInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |