BililiveRecorder/BililiveRecorder.Core/IStreamMonitor.cs
2019-08-22 01:26:18 +08:00

20 lines
513 B
C#

using System;
using System.Threading.Tasks;
namespace BililiveRecorder.Core
{
public interface IStreamMonitor : IDisposable
{
int Roomid { get; }
bool IsMonitoring { get; }
event RoomInfoUpdatedEvent RoomInfoUpdated;
event StreamStartedEvent StreamStarted;
event ReceivedDanmakuEvt ReceivedDanmaku;
bool Start();
void Stop();
void Check(TriggerType type, int millisecondsDelay = 0);
Task<RoomInfo> FetchRoomInfoAsync();
}
}