mirror of
https://github.com/hmaxnl/SharpRSS.git
synced 2024-11-10 07:54:20 +01:00
23 lines
496 B
C#
23 lines
496 B
C#
|
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
|
||
|
}
|
||
|
}
|