common/Logic/Common.Logic.Extensions.Http/HttpResponse[T].cs
2026-04-23 17:50:07 +02:00

27 lines
737 B
C#

namespace Common.Logic.Extensions.Http
{
using Common.Logic.Extensions.Http.Interfaces;
using System;
using System.Collections.Generic;
using System.Net;
public class HttpResponse<T> : IHttpResponse<T>
{
public HttpResponse()
=> this.Errors = new Dictionary<String, String>();
public HttpResponse(Exception exception) : this()
=> this.Exception = exception;
public Boolean Succeeded { get; internal set; }
public HttpStatusCode StatusCode { get; internal set; }
public T Value { get; internal set; }
public Exception Exception { get; internal set; }
public Dictionary<String, String> Errors { get; internal set; }
}
}