BililiveRecorder/BililiveRecorder.Core/IRecordedRoom.cs

48 lines
1.1 KiB
C#
Raw Permalink Normal View History

2018-11-03 07:45:56 +08:00
using System;
2018-10-24 14:33:05 +08:00
using System.ComponentModel;
2020-12-20 20:56:40 +08:00
using BililiveRecorder.Core.Callback;
2021-01-01 14:46:27 +08:00
using BililiveRecorder.Core.Config.V2;
using BililiveRecorder.FlvProcessor;
2018-10-24 14:33:05 +08:00
2020-12-20 20:56:40 +08:00
#nullable enable
2018-10-24 14:33:05 +08:00
namespace BililiveRecorder.Core
{
public interface IRecordedRoom : INotifyPropertyChanged, IDisposable
2018-10-24 14:33:05 +08:00
{
2020-12-05 18:30:04 +08:00
Guid Guid { get; }
2021-01-01 14:46:27 +08:00
RoomConfig RoomConfig { get; }
2019-08-22 01:26:18 +08:00
int ShortRoomId { get; }
int RoomId { get; }
2018-10-24 14:33:05 +08:00
string StreamerName { get; }
2020-12-20 20:56:40 +08:00
string Title { get; }
event EventHandler<RecordEndData>? RecordEnded;
2018-10-24 14:33:05 +08:00
IStreamMonitor StreamMonitor { get; }
2020-12-20 20:56:40 +08:00
IFlvStreamProcessor? Processor { get; }
2018-10-24 14:33:05 +08:00
bool IsMonitoring { get; }
bool IsRecording { get; }
2020-12-15 19:38:35 +08:00
bool IsDanmakuConnected { get; }
bool IsStreaming { get; }
2018-10-24 14:33:05 +08:00
2018-11-03 07:45:56 +08:00
double DownloadSpeedPersentage { get; }
2019-11-24 09:08:29 +08:00
double DownloadSpeedMegaBitps { get; }
2018-10-24 14:33:05 +08:00
DateTime LastUpdateDateTime { get; }
2018-10-31 06:22:38 +08:00
void Clip();
2018-10-24 14:33:05 +08:00
bool Start();
void Stop();
void StartRecord();
void StopRecord();
void RefreshRoomInfo();
void Shutdown();
2018-10-24 14:33:05 +08:00
}
}