Spotify.NET/SpotifyAPI.Web/Http/Response.cs

25 lines
567 B
C#
Raw Normal View History

2020-05-01 19:05:28 +01:00
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Net;
namespace SpotifyAPI.Web.Http
{
public class Response : IResponse
{
public Response(IDictionary<string, string> headers)
{
Ensure.ArgumentNotNull(headers, nameof(headers));
Headers = new ReadOnlyDictionary<string, string>(headers);
}
2020-05-25 17:00:38 +01:00
public object? Body { get; set; }
2020-05-01 19:05:28 +01:00
public IReadOnlyDictionary<string, string> Headers { get; set; }
public HttpStatusCode StatusCode { get; set; }
2020-05-25 17:00:38 +01:00
public string? ContentType { get; set; }
2020-05-01 19:05:28 +01:00
}
}