Class ProxyTypeConverter
JSON converter for the ProxyType preference.
Inherited Members
Newtonsoft.Json.JsonConverter.CanWrite
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 |
---|---|
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 |
---|---|---|
Type | type | The type. |
Returns
Type | Description |
---|---|
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 | |
Type | objectType | |
Object | existingValue | |
Newtonsoft.Json.JsonSerializer | serializer |
Returns
Type | Description |
---|---|
Object |
Overrides
Newtonsoft.Json.JsonConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
Exceptions
Type | Condition |
---|---|
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 | |
Object | value | |
Newtonsoft.Json.JsonSerializer | serializer |
Overrides
Newtonsoft.Json.JsonConverter.WriteJson(Newtonsoft.Json.JsonWriter, System.Object, Newtonsoft.Json.JsonSerializer)