2021-02-23 18:03:37 +08:00
|
|
|
using System;
|
|
|
|
|
|
|
|
namespace BililiveRecorder.Core.Event
|
|
|
|
{
|
|
|
|
public abstract class RecordEventArgsBase : EventArgs
|
|
|
|
{
|
2022-05-17 18:08:53 +08:00
|
|
|
protected RecordEventArgsBase(IRoom room)
|
2021-02-23 18:03:37 +08:00
|
|
|
{
|
|
|
|
this.RoomId = room.RoomConfig.RoomId;
|
|
|
|
this.ShortId = room.ShortId;
|
|
|
|
this.Name = room.Name;
|
|
|
|
this.Title = room.Title;
|
|
|
|
this.AreaNameParent = room.AreaNameParent;
|
|
|
|
this.AreaNameChild = room.AreaNameChild;
|
2022-05-17 18:08:53 +08:00
|
|
|
this.Recording = room.Recording;
|
|
|
|
this.Streaming = room.Streaming;
|
|
|
|
this.DanmakuConnected = room.DanmakuConnected;
|
2021-02-23 18:03:37 +08:00
|
|
|
}
|
|
|
|
|
2022-05-17 18:08:53 +08:00
|
|
|
public int RoomId { get; protected set; }
|
|
|
|
public int ShortId { get; protected set; }
|
|
|
|
public string Name { get; protected set; } = string.Empty;
|
|
|
|
public string Title { get; protected set; } = string.Empty;
|
|
|
|
public string AreaNameParent { get; protected set; } = string.Empty;
|
|
|
|
public string AreaNameChild { get; protected set; } = string.Empty;
|
2021-02-23 18:03:37 +08:00
|
|
|
|
2022-05-17 18:08:53 +08:00
|
|
|
public bool Recording { get; protected set; }
|
|
|
|
public bool Streaming { get; protected set; }
|
|
|
|
public bool DanmakuConnected { get; protected set; }
|
2021-02-23 18:03:37 +08:00
|
|
|
}
|
|
|
|
}
|