Class ExternalNetworkInfo
External 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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ExternalNetworkInfo : NetworkInfo
Properties
PublicHostname
Gets or sets the public hostname.
Declaration
public string PublicHostname { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PublicIPAddress
Gets or sets the public IP address.
Declaration
public string PublicIPAddress { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
DeserializeProperties(String, String)
Deserializes the properties.
Declaration
protected override void DeserializeProperties(string key, string valueJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | The key. |
System.String | valueJson | The value in JSON format. |
Overrides
FromJson(String)
Deserializes Json to a ExternalNetworkInfo.
Declaration
public static ExternalNetworkInfo FromJson(string networkInfoJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | networkInfoJson | The serialized Json. |
Returns
Type | Description |
---|---|
ExternalNetworkInfo | The deserialized ExternalNetworkInfo. |
SerializeProperties(Dictionary<String, String>)
Serializes the properties.
Declaration
protected override void SerializeProperties(Dictionary<string, string> jsonObject)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<System.String, System.String> | jsonObject | The JSON object. |
Overrides
ToJson(ExternalNetworkInfo)
Serializes an instance to Json.
Declaration
public static string ToJson(ExternalNetworkInfo networkInfo)
Parameters
Type | Name | Description |
---|---|---|
ExternalNetworkInfo | networkInfo | The instance to serialize. |
Returns
Type | Description |
---|---|
System.String | Serialized Json. |