mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 03:32:20 +08:00
19 lines
492 B
C#
19 lines
492 B
C#
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<StatusChangedEventArgs>? StatusChanged;
|
|
event EventHandler<DanmakuReceivedEventArgs>? DanmakuReceived;
|
|
|
|
Task ConnectAsync(int roomid, CancellationToken cancellationToken);
|
|
Task DisconnectAsync();
|
|
}
|
|
}
|