feat(esppApi): EsppResultBase

This commit is contained in:
Mikhail Trubnikov
2023-10-20 09:24:27 +10:00
parent f45fca9122
commit 61bfa5079a
5 changed files with 40 additions and 4 deletions

View File

@@ -0,0 +1,18 @@
namespace PARR.EsppApi.Models
{
public class EsppResultBase<T> where T : class
{
public EsppResultBase(T? data, bool isSuccess, Exception? exception = null)
{
Data = data;
IsSuccess = isSuccess;
Exception = exception;
}
public T? Data { get; private set; }
public bool IsSuccess { get; private set; }
public Exception? Exception { get; private set; }
}
}