Class ProxyCredentials
Proxy credentials.
Inheritance
System.Object
ProxyCredentials
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 ProxyCredentials
Constructors
ProxyCredentials(String, String)
Initializes a new instance of the ProxyCredentials class.
Declaration
public ProxyCredentials(string username, string password)
Parameters
Type | Name | Description |
---|---|---|
System.String | username | The username. |
System.String | password | The password. |
Properties
Password
Gets or sets the password.
Declaration
public string Password { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Username
Gets or sets the username.
Declaration
public string Username { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
FromJson(String)
Deserializes an instance from JSON.
Declaration
public static ProxyCredentials FromJson(string instanceJson)
Parameters
Type | Name | Description |
---|---|---|
System.String | instanceJson | The serialized JSON. |
Returns
Type | Description |
---|---|
ProxyCredentials | The instance. |
ToJson()
Serializes this instance to JSON.
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |
ToJson(ProxyCredentials)
Serializes an instance to JSON.
Declaration
public static string ToJson(ProxyCredentials instance)
Parameters
Type | Name | Description |
---|---|---|
ProxyCredentials | instance | The instance. |
Returns
Type | Description |
---|---|
System.String | The serialized JSON. |