Order and update LastResponseStatus (fixes #150)

This commit is contained in:
Thom Kaptein 2020-06-29 14:18:16 +02:00
parent 9035db05e8
commit c77e03b9ba

View File

@ -4,27 +4,6 @@ public enum LastResponseStatus
{
Unknown = 0,
/// <summary>
/// The request was successful!
/// </summary>
Successful = 20,
/// <summary>
/// The request has been cached, it will be sent later
/// </summary>
Cached = 21,
/// <summary>
/// The request could not be sent, and could not be cached.
/// Check the Exception property of the response for details.
/// </summary>
CacheFailed = 22,
/// <summary>
/// The request failed, check for network connectivity
/// </summary>
RequestFailed = 23,
/// <summary>
/// The service requested does not exist (2)
/// </summary>
@ -77,7 +56,7 @@ public enum LastResponseStatus
/// <summary>
/// The request signature was invalid. Check that your API key and secret are valid. (13)
/// You can generate new keys at http://www.last.fm/api/accounts
/// You can generate new keys at https://www.last.fm/api/account/create
/// </summary>
BadMethodSignature = 13,
@ -86,6 +65,33 @@ public enum LastResponseStatus
/// </summary>
TemporaryFailure = 16,
/// <summary>
/// User required to be logged in. (17)
/// Requested profile might not have privacy set to public.
/// </summary>
LoginRequired = 17,
/// <summary>
/// The request was successful!
/// </summary>
Successful = 20,
/// <summary>
/// The request has been cached, it will be sent later
/// </summary>
Cached = 21,
/// <summary>
/// The request could not be sent, and could not be cached.
/// Check the Exception property of the response for details.
/// </summary>
CacheFailed = 22,
/// <summary>
/// The request failed, check for network connectivity
/// </summary>
RequestFailed = 23,
/// <summary>
/// This API key has been suspended, please generate a new key at http://www.last.fm/api/accounts (26)
/// </summary>
@ -93,6 +99,7 @@ public enum LastResponseStatus
/// <summary>
/// This API key has been rate-limited because too many requests have been made in a short period. Retry later (29)
/// For more information on rate limits, please contact Last.FM at the partners@last.fm email address.
/// </summary>
RateLimited = 29
}