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; }
    }
}
