using System; using System.Threading; using System.Threading.Tasks; using BililiveRecorder.Core.Api.Danmaku; namespace BililiveRecorder.Core.Api { public interface IDanmakuClient : IDisposable { bool Connected { get; } event EventHandler? StatusChanged; event EventHandler? DanmakuReceived; Task ConnectAsync(int roomid, CancellationToken cancellationToken); Task DisconnectAsync(); } }