mirror of
https://github.com/BililiveRecorder/BililiveRecorder.git
synced 2024-11-16 19:57:27 +08:00
25 lines
504 B
C#
25 lines
504 B
C#
using System;
|
|
|
|
namespace BililiveRecorder.Core.SimpleWebhook
|
|
{
|
|
public class EventWrapper<T> where T : class
|
|
{
|
|
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; }
|
|
}
|
|
}
|