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);
|
||||
|
||||
// Override JSON serialization
|
||||
this.Client.AddHandler("application/json", NewtonsoftJsonSerializer.Default);
|
||||
this.Client.AddHandler("text/json", NewtonsoftJsonSerializer.Default);
|
||||
this.Client.AddHandler("text/x-json", NewtonsoftJsonSerializer.Default);
|
||||
this.Client.AddHandler("text/javascript", NewtonsoftJsonSerializer.Default);
|
||||
this.Client.AddHandler("*+json", NewtonsoftJsonSerializer.Default);
|
||||
this.Client.AddHandler(
|
||||
() => NewtonsoftJsonSerializer.Default,
|
||||
"application/json",
|
||||
"text/json",
|
||||
"text/x-json",
|
||||
"text/javascript",
|
||||
"*+json"
|
||||
);
|
||||
|
||||
this.Tags = new TagManager(this);
|
||||
this.Notifications = new NotificationManager(this);
|
||||
|
|
Reference in New Issue