mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Big update. Replaced Newtonsoft with System.Text.Json where possible, removed Spectre, tried to suppress the pile of compiler warnings I get on the GUI project, and tried to correct an issue where sometimes the session token retrieved is not usable.
This commit is contained in:
@@ -2,10 +2,10 @@ using System;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Net.Http.Headers;
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading.Tasks;
|
||||
using KfChatDotNetGui.Models;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace KfChatDotNetGui.Helpers;
|
||||
|
||||
@@ -36,7 +36,7 @@ public static class ForumIdentity
|
||||
}
|
||||
|
||||
var accountJs = match.Groups[1].Value;
|
||||
return JsonConvert.DeserializeObject<ForumIdentityModel>(accountJs);
|
||||
return JsonSerializer.Deserialize<ForumIdentityModel>(accountJs);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user