BililiveRecorder/BililiveRecorder.Core/Api/IHttpClientAccessor.cs
进栈检票 adc91cc4f3
feat(core): connect to danmaku server with buvid3 from cookie & refactor HttpApiClient (#507)
* feat(core): connect to danmaku server with buvid3

* make buvid3 nullable & add json serializer setting

* fix test

* fix regex & make regex static

* remove anonHttpClient

* remove MainHttpClient

* split FetchAsTextAsync

* GetAnonymousCookieAsync

* use template string in TestCookieAsync

* fix test

* background get anonymous cookie

* make jsonSerializerSettings static

* fix uid parse logic

* fix buvid match

* remove GetAnonCookie

* restore merge typo

* fix comment

* rename ICookieTester
2023-07-16 08:01:50 +00:00

11 lines
189 B
C#

using System.Net.Http;
using System.Threading.Tasks;
namespace BililiveRecorder.Core.Api
{
public interface ICookieTester
{
Task<(bool, string)> TestCookieAsync();
}
}