Files
better-genshin-impact/BetterGenshinImpact/Service/Notification/Model/NotificationTestResult.cs
2025-02-01 23:03:25 +08:00

18 lines
512 B
C#

namespace BetterGenshinImpact.Service.Notification.Model;
public class NotificationTestResult
{
public bool IsSuccess { get; set; }
public string Message { get; set; } = string.Empty;
public static NotificationTestResult Success()
{
return new NotificationTestResult { IsSuccess = true, Message = "通知成功" };
}
public static NotificationTestResult Error(string message)
{
return new NotificationTestResult { IsSuccess = false, Message = message };
}
}