Spotify.NET/SpotifyAPI.Web/Models/Request/PKCETokenRefreshRequest.cs
2024-02-10 11:42:55 +01:00

32 lines
1000 B
C#

namespace SpotifyAPI.Web
{
public class PKCETokenRefreshRequest
{
/// <summary>
/// Request model for refreshing a access token via PKCE Token
/// </summary>
/// <param name="clientId">The Client ID of your Spotify Application (See Spotify Dev Dashboard).</param>
/// <param name="refreshToken">The received refresh token. Expires after one refresh</param>
public PKCETokenRefreshRequest(string clientId, string refreshToken)
{
Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId));
Ensure.ArgumentNotNullOrEmptyString(refreshToken, nameof(refreshToken));
ClientId = clientId;
RefreshToken = refreshToken;
}
/// <summary>
/// The Client ID of your Spotify Application (See Spotify Dev Dashboard).
/// </summary>
/// <value></value>
public string ClientId { get; }
/// <summary>
/// The received refresh token.
/// </summary>
/// <value></value>
public string RefreshToken { get; }
}
}