BililiveRecorder/BililiveRecorder.Core/IStreamMonitor.cs
2020-12-15 19:38:35 +08:00

22 lines
604 B
C#

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