2018-11-28 22:29:35 +08:00
|
|
|
|
using BililiveRecorder.Core.Config;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Collections.Specialized;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core
|
|
|
|
|
{
|
|
|
|
|
public interface IRecorder : INotifyPropertyChanged, INotifyCollectionChanged, IEnumerable<IRecordedRoom>, ICollection<IRecordedRoom>
|
|
|
|
|
{
|
|
|
|
|
ConfigV1 Config { get; }
|
|
|
|
|
|
|
|
|
|
bool Initialize(string workdir);
|
|
|
|
|
|
|
|
|
|
void AddRoom(int roomid);
|
|
|
|
|
|
|
|
|
|
void AddRoom(int roomid, bool enabled);
|
|
|
|
|
|
|
|
|
|
void RemoveRoom(IRecordedRoom rr);
|
|
|
|
|
|
2019-08-14 21:41:41 +08:00
|
|
|
|
void SaveConfigToFile();
|
|
|
|
|
|
2018-11-28 22:29:35 +08:00
|
|
|
|
void Shutdown();
|
|
|
|
|
}
|
|
|
|
|
}
|