chargeafter-rnd_chargeafter-plugin-for-nopcommerce/Nop.Plugin.Payments.ChargeAfter/Core/Http/HttpResponse.cs
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Http.Headers;
using System.Text;

namespace Nop.Plugin.Payments.ChargeAfter.Core.Http
{
    public class HttpResponse
    {
        public HttpHeaders Headers { get; }
        public HttpStatusCode StatusCode { get; }

        private object result;

        public HttpResponse(HttpHeaders headers, HttpStatusCode statusCode, object result)
        {
            this.Headers = headers;
            this.StatusCode = statusCode;
            this.result = result;
        }

        public T Result<T>()
        {
            return (T)this.result;
        }
    }
}
