2021-02-23 18:03:37 +08:00
|
|
|
using System;
|
|
|
|
using System.ComponentModel;
|
|
|
|
using System.Threading.Tasks;
|
2021-12-19 21:10:34 +08:00
|
|
|
using BililiveRecorder.Core.Config.V3;
|
2021-02-23 18:03:37 +08:00
|
|
|
using BililiveRecorder.Core.Event;
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core
|
|
|
|
{
|
|
|
|
public interface IRoom : INotifyPropertyChanged, IDisposable
|
|
|
|
{
|
|
|
|
Guid ObjectId { get; }
|
|
|
|
|
|
|
|
RoomConfig RoomConfig { get; }
|
|
|
|
|
|
|
|
int ShortId { get; }
|
|
|
|
string Name { get; }
|
|
|
|
string Title { get; }
|
|
|
|
string AreaNameParent { get; }
|
|
|
|
string AreaNameChild { get; }
|
|
|
|
|
|
|
|
bool Recording { get; }
|
|
|
|
bool Streaming { get; }
|
|
|
|
bool DanmakuConnected { get; }
|
2021-04-21 23:18:23 +08:00
|
|
|
bool AutoRecordForThisSession { get; }
|
2021-02-23 18:03:37 +08:00
|
|
|
RecordingStats Stats { get; }
|
|
|
|
|
|
|
|
event EventHandler<RecordSessionStartedEventArgs>? RecordSessionStarted;
|
|
|
|
event EventHandler<RecordSessionEndedEventArgs>? RecordSessionEnded;
|
|
|
|
event EventHandler<RecordFileOpeningEventArgs>? RecordFileOpening;
|
|
|
|
event EventHandler<RecordFileClosedEventArgs>? RecordFileClosed;
|
|
|
|
event EventHandler<RecordingStatsEventArgs>? RecordingStats;
|
|
|
|
event EventHandler<NetworkingStatsEventArgs>? NetworkingStats;
|
|
|
|
|
|
|
|
void StartRecord();
|
|
|
|
void StopRecord();
|
|
|
|
void SplitOutput();
|
|
|
|
Task RefreshRoomInfoAsync();
|
|
|
|
}
|
|
|
|
}
|