mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 23:16:28 +00:00
26 lines
579 B
C#
26 lines
579 B
C#
|
using System;
|
||
|
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);
|
||
|
}
|
||
|
|
||
|
public object Body { get; set; }
|
||
|
|
||
|
public IReadOnlyDictionary<string, string> Headers { get; set; }
|
||
|
|
||
|
public HttpStatusCode StatusCode { get; set; }
|
||
|
|
||
|
public string ContentType { get; set; }
|
||
|
}
|
||
|
}
|