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

18 lines
346 B
C#
Raw Normal View History

2020-05-01 19:05:28 +01:00
namespace SpotifyAPI.Web.Http
{
public class APIResponse<T> : IAPIResponse<T>
{
public APIResponse(IResponse response, T body = default)
2020-05-01 19:05:28 +01:00
{
Ensure.ArgumentNotNull(response, nameof(response));
Body = body;
Response = response;
}
public T Body { get; set; }
public IResponse Response { get; set; }
}
}