Class ClientConfig
Client configuration.
Inheritance
System.Object
ClientConfig
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class ClientConfig
Properties
DeviceAlias
Gets or sets the Device Alias.
Declaration
public string DeviceAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Roles
Gets or sets the Roles.
Declaration
public string[] Roles { get; set; }
Property Value
Type | Description |
---|---|
System.String[] |
Tag
Gets or sets the Tag.
Declaration
public string Tag { get; set; }
Property Value
Type | Description |
---|---|
System.String |
UserAlias
Gets or sets the User Alias.
Declaration
public string UserAlias { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static ClientConfig FromJson(string clientConfigJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | clientConfigJson | The JSON to deserialize. |
Returns
Type | Description |
---|---|
ClientConfig | The deserialized client config. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String |
ToJson(ClientConfig)
Serializes an instance to JSON.
Declaration
public static string ToJson(ClientConfig clientConfig)
Parameters
Type | Name | Description |
---|---|---|
ClientConfig | clientConfig | The client config to serialize. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |