BililiveRecorder/BililiveRecorder.Core/SimpleWebhook/EventWrapper.cs
genteure 34ba4ded08 Add more webhook types
Added StreamStarted and StreamEnded
Close #269
2022-05-17 18:08:53 +08:00

24 lines
539 B
C#

using System;
using BililiveRecorder.Core.Event;
namespace BililiveRecorder.Core.SimpleWebhook
{
internal class EventWrapper<T> where T : RecordEventArgsBase
{
public EventWrapper() { }
public EventWrapper(T data)
{
this.EventData = data;
}
public EventType EventType { get; set; }
public DateTimeOffset EventTimestamp { get; set; } = DateTimeOffset.Now;
public Guid EventId { get; set; } = Guid.NewGuid();
public T? EventData { get; set; }
}
}