mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-12-28 13:25:50 +08:00
34ba4ded08
Added StreamStarted and StreamEnded Close #269
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using System;
|
|
|
|
namespace BililiveRecorder.Core.Event
|
|
{
|
|
public abstract class RecordEventArgsBase : EventArgs
|
|
{
|
|
protected RecordEventArgsBase(IRoom room)
|
|
{
|
|
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;
|
|
this.Recording = room.Recording;
|
|
this.Streaming = room.Streaming;
|
|
this.DanmakuConnected = room.DanmakuConnected;
|
|
}
|
|
|
|
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;
|
|
|
|
public bool Recording { get; protected set; }
|
|
public bool Streaming { get; protected set; }
|
|
public bool DanmakuConnected { get; protected set; }
|
|
}
|
|
}
|