mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-04-06 11:55:31 +08:00
24 lines
755 B
C#
24 lines
755 B
C#
using BetterGenshinImpact.Service.Notification.Converter;
|
|
using BetterGenshinImpact.Service.Notification.Model.Enum;
|
|
using System.Drawing;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace BetterGenshinImpact.Service.Notification.Model;
|
|
|
|
public record TaskNotificationData : INotificationData
|
|
{
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public NotificationEvent Event { get; set; }
|
|
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public NotificationAction Action { get; set; }
|
|
|
|
[JsonConverter(typeof(JsonStringEnumConverter))]
|
|
public NotificationConclusion? Conclusion { get; set; }
|
|
|
|
[JsonConverter(typeof(ImageToBase64Converter))]
|
|
public Image? Screenshot { get; set; }
|
|
|
|
public object? Task { get; set; }
|
|
}
|