using CommunityToolkit.Mvvm.ComponentModel; using System; namespace BetterGenshinImpact.Service.Notification; /// /// Notification /// [Serializable] public partial class NotificationConfig : ObservableObject { [ObservableProperty] private string _notificationEventSubscribe = string.Empty; /// /// /// [ObservableProperty] private bool _webhookEnabled; /// /// /// [ObservableProperty] private string _webhookEndpoint = string.Empty; /// /// 是否包含截图 /// [ObservableProperty] private bool _includeScreenShot = true; /// /// windows uwp 通知是否启用 /// [ObservableProperty] private bool _windowsUwpNotificationEnabled = false; // 飞书通知 /// /// 飞书通知是否启用 /// [ObservableProperty] private bool _feishuNotificationEnabled = false; /// /// 飞书通知地址 /// [ObservableProperty] private string _feishuWebhookUrl = string.Empty; // 企业微信通知 /// /// 企业微信通知是否启用 /// [ObservableProperty] private bool _workweixinNotificationEnabled = false; /// /// 企业微信通知通知地址 /// [ObservableProperty] private string _workweixinWebhookUrl = string.Empty; }