BililiveRecorder/BililiveRecorder.Core/Api/IDanmakuServerApiClient.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

14 lines
329 B
C#

using System;
using System.Threading.Tasks;
using BililiveRecorder.Core.Api.Model;
namespace BililiveRecorder.Core.Api
{
internal interface IDanmakuServerApiClient : IDisposable
{
long GetUid();
string? GetBuvid3();
Task<BilibiliApiResponse<DanmuInfo>> GetDanmakuServerAsync(int roomid);
}
}