Avoid deprecated AddHandler signature
This commit is contained in:
parent
dd7683bfa9
commit
ab4ba0b577
|
@ -24,11 +24,14 @@ namespace HabitSharp
|
||||||
this.Client.Authenticator = new HabiticaAuthenticator(UserID, ApiKey);
|
this.Client.Authenticator = new HabiticaAuthenticator(UserID, ApiKey);
|
||||||
|
|
||||||
// Override JSON serialization
|
// Override JSON serialization
|
||||||
this.Client.AddHandler("application/json", NewtonsoftJsonSerializer.Default);
|
this.Client.AddHandler(
|
||||||
this.Client.AddHandler("text/json", NewtonsoftJsonSerializer.Default);
|
() => NewtonsoftJsonSerializer.Default,
|
||||||
this.Client.AddHandler("text/x-json", NewtonsoftJsonSerializer.Default);
|
"application/json",
|
||||||
this.Client.AddHandler("text/javascript", NewtonsoftJsonSerializer.Default);
|
"text/json",
|
||||||
this.Client.AddHandler("*+json", NewtonsoftJsonSerializer.Default);
|
"text/x-json",
|
||||||
|
"text/javascript",
|
||||||
|
"*+json"
|
||||||
|
);
|
||||||
|
|
||||||
this.Tags = new TagManager(this);
|
this.Tags = new TagManager(this);
|
||||||
this.Notifications = new NotificationManager(this);
|
this.Notifications = new NotificationManager(this);
|
||||||
|
|
Reference in New Issue