BililiveRecorder/BililiveRecorder.Core/Event/RecordEventArgsBase.cs

32 lines
1.1 KiB
C#
Raw Normal View History

2021-02-23 18:03:37 +08:00
using System;
namespace BililiveRecorder.Core.Event
{
public abstract class RecordEventArgsBase : EventArgs
{
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;
this.Recording = room.Recording;
this.Streaming = room.Streaming;
this.DanmakuConnected = room.DanmakuConnected;
2021-02-23 18:03:37 +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
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
}
}