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

18 lines
348 B
C#
Raw Permalink Normal View History

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