Class ProxyTypeConverter
JSON converter for the ProxyType preference.
Inheritance
System.Object
Newtonsoft.Json.JsonConverter
ProxyTypeConverter
Inherited Members
Newtonsoft.Json.JsonConverter.CanWrite
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: QBittorrent.Client
Assembly: QBittorrent.Client.dll
Syntax
public class ProxyTypeConverter : JsonConverter
Constructors
| Improve this Doc View SourceProxyTypeConverter(ApiVersion)
Initializes a new instance of the ProxyTypeConverter class.
Declaration
public ProxyTypeConverter(ApiVersion apiVersion)
Parameters
Type | Name | Description |
---|---|---|
ApiVersion | apiVersion | qBittorrent API version. |
Properties
| Improve this Doc View SourceCanRead
Indicates whether this converter can read JSON.
Declaration
public override bool CanRead { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Always false. |
Overrides
Newtonsoft.Json.JsonConverter.CanRead
Methods
| Improve this Doc View SourceCanConvert(Type)
Indicates whether this converter can write a type to JSON.
Declaration
public override bool CanConvert(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
Returns
Type | Description |
---|---|
System.Boolean | True if |
Overrides
Newtonsoft.Json.JsonConverter.CanConvert(System.Type)
|
Improve this Doc
View Source
ReadJson(JsonReader, Type, Object, JsonSerializer)
Reads a value from JSON.
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonReader | reader | |
System.Type | objectType | |
System.Object | existingValue | |
Newtonsoft.Json.JsonSerializer | serializer |
Returns
Type | Description |
---|---|
System.Object |
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
Exceptions
Type | Condition |
---|---|
System.NotImplementedException | This converter is not capable of reading JSON. |
WriteJson(JsonWriter, Object, JsonSerializer)
Writes a value to JSON.
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Newtonsoft.Json.JsonWriter | writer | |
System.Object | value | |
Newtonsoft.Json.JsonSerializer | serializer |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)