mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-09 00:34:14 +08:00
18 lines
515 B
C#
18 lines
515 B
C#
using System.Text.Json.Serialization;
|
|
using BetterGenshinImpact.Service.Notification.Model.Enum;
|
|
|
|
namespace BetterGenshinImpact.Service.Notification.Model;
|
|
|
|
public record LifecycleNotificationData : INotificationData
|
|
{
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public NotificationEvent Event { get; set; }
|
|
|
|
public object? Payload { get; set; }
|
|
|
|
public static LifecycleNotificationData Test()
|
|
{
|
|
return new LifecycleNotificationData() { Event = NotificationEvent.Test };
|
|
}
|
|
}
|