Spotify.NET/SpotifyAPI.Web/Models/ResponseInfo.cs
Justin Swanson 67cb3e42f1 TooManyRequests Handling (#282)
* SpotifyHttpStatusCode

A small supplementary enum for Spotify specific codes.  Only contains TooManyRequests currently, but more can be added.

* TooManyRequests Retry Handling

Will now parse and wait the Spotify recommended wait time.  Also has the option to not consume a retry attempt on this type of error

* TryGetTooManyRequests refactored to GetTooManyRequests

To keep the library consistent

* Removed SpotifyHttpStatusCode
2018-09-21 14:42:52 +02:00

14 lines
313 B
C#

using SpotifyAPI.Web.Enums;
using System.Net;
namespace SpotifyAPI.Web.Models
{
public class ResponseInfo
{
public WebHeaderCollection Headers { get; set; }
public HttpStatusCode StatusCode { get; set; }
public static readonly ResponseInfo Empty = new ResponseInfo();
}
}