XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

HaloPixelToolBox

【WinUI3】基于USB HID通讯的花再音响工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
namespace HaloPixelToolBox.Core.Models.Notifications;

public sealed record MessageNotificationOptions(bool WeChat = false, bool QQ = false, bool WeCom = false)
{
    public bool AnyEnabled => WeChat || QQ || WeCom;

    public bool IsEnabled(MessageNotificationSource source) => source switch
    {
        MessageNotificationSource.WeChat => WeChat,
        MessageNotificationSource.QQ => QQ,
        MessageNotificationSource.WeCom => WeCom,
        _ => false
    };
}