SharpRSS/SharpRSS.API.Contracts/Models/Result.cs

23 lines
496 B
C#
Raw Normal View History

2023-10-08 00:46:42 +02:00
namespace SharpRSS.API.Contracts.Models
{
public class Result
{
public Result(string message = "", ResultStatus status = ResultStatus.Ok)
{
Message = message;
Status = status;
}
public bool Success => Status == ResultStatus.Ok;
public string Message { get; }
public ResultStatus Status { get; set; }
}
public enum ResultStatus
{
Ok,
Failed,
InternalFail,
Unknown
}
}