mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-03-22 08:49:47 +08:00
18 lines
512 B
C#
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 };
|
|
}
|
|
}
|