using System; namespace SpotifyAPI.Web { public class PKCETokenRequest { /// /// /// /// The Client ID of your Spotify Application (See Spotify Dev Dashboard). /// The code received from the spotify response. /// The redirectUri which was used to initiate the authentication. /// /// The value of this parameter must match the value of the code_verifier /// that your app generated in step 1. /// public PKCETokenRequest(string clientId, string code, Uri redirectUri, string codeVerifier) { Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId)); Ensure.ArgumentNotNullOrEmptyString(code, nameof(code)); Ensure.ArgumentNotNullOrEmptyString(codeVerifier, nameof(codeVerifier)); Ensure.ArgumentNotNull(redirectUri, nameof(redirectUri)); ClientId = clientId; CodeVerifier = codeVerifier; Code = code; RedirectUri = redirectUri; } /// /// The Client ID of your Spotify Application (See Spotify Dev Dashboard). /// /// public string ClientId { get; } /// /// The value of this parameter must match the value of the code_verifier /// that your app generated in step 1. /// /// public string CodeVerifier { get; } /// /// The code received from the spotify response. /// /// public string Code { get; } /// /// The redirectUri which was used to initiate the authentication. /// /// public Uri RedirectUri { get; } } }