BililiveRecorder/BililiveRecorder.Core/Event/AggregatedRoomEventArgs.cs

18 lines
382 B
C#
Raw Normal View History

2021-02-23 18:03:37 +08:00
using System;
namespace BililiveRecorder.Core.Event
{
public sealed class AggregatedRoomEventArgs<T>
2021-02-23 18:03:37 +08:00
{
public AggregatedRoomEventArgs(IRoom room, T @event)
{
this.Room = room ?? throw new ArgumentNullException(nameof(room));
this.Event = @event;
}
public IRoom Room { get; }
public T Event { get; }
}
}