BililiveRecorder/BililiveRecorder.Core/Api/IDanmakuClient.cs

22 lines
628 B
C#
Raw Normal View History

2021-02-23 18:03:37 +08:00
using System;
using System.Threading;
using System.Threading.Tasks;
using BililiveRecorder.Core.Api.Danmaku;
using BililiveRecorder.Core.Config;
2021-02-23 18:03:37 +08:00
namespace BililiveRecorder.Core.Api
{
internal interface IDanmakuClient : IDisposable
2021-02-23 18:03:37 +08:00
{
bool Connected { get; }
event EventHandler<StatusChangedEventArgs>? StatusChanged;
event EventHandler<DanmakuReceivedEventArgs>? DanmakuReceived;
Func<string, string?>? BeforeHandshake { get; set; }
Task ConnectAsync(int roomid, DanmakuTransportMode transportMode, CancellationToken cancellationToken);
2021-02-23 18:03:37 +08:00
Task DisconnectAsync();
}
}