BililiveRecorder/BililiveRecorder.Core/IRecorder.cs
2022-04-02 21:02:29 +08:00

28 lines
1.1 KiB
C#

using System;
using System.Collections.ObjectModel;
using System.ComponentModel;
using BililiveRecorder.Core.Config.V2;
using BililiveRecorder.Core.Event;
namespace BililiveRecorder.Core
{
public interface IRecorder : INotifyPropertyChanged, IDisposable
{
ConfigV2 Config { get; }
ReadOnlyObservableCollection<IRoom> Rooms { get; }
event EventHandler<AggregatedRoomEventArgs<RecordSessionStartedEventArgs>>? RecordSessionStarted;
event EventHandler<AggregatedRoomEventArgs<RecordSessionEndedEventArgs>>? RecordSessionEnded;
event EventHandler<AggregatedRoomEventArgs<RecordFileOpeningEventArgs>>? RecordFileOpening;
event EventHandler<AggregatedRoomEventArgs<RecordFileClosedEventArgs>>? RecordFileClosed;
event EventHandler<AggregatedRoomEventArgs<NetworkingStatsEventArgs>>? NetworkingStats;
event EventHandler<AggregatedRoomEventArgs<RecordingStatsEventArgs>>? RecordingStats;
IRoom AddRoom(int roomid);
IRoom AddRoom(int roomid, bool enabled);
void RemoveRoom(IRoom room);
void SaveConfig();
}
}