using System; namespace SpotifyAPI.Web { /// /// Used when requesting a token from spotify oauth services (Authorization Code Auth) /// public class AuthorizationCodeTokenRequest { /// /// /// /// The Client ID of your Spotify Application (See Spotify Dev Dashboard). /// The Client Secret of your Spotify Application (See Spotify Dev Dashboard). /// The code received from the spotify response. /// The redirectUri which was used to initiate the authentication. public AuthorizationCodeTokenRequest(string clientId, string clientSecret, string code, Uri redirectUri) { Ensure.ArgumentNotNullOrEmptyString(clientId, nameof(clientId)); Ensure.ArgumentNotNullOrEmptyString(clientSecret, nameof(clientSecret)); Ensure.ArgumentNotNullOrEmptyString(code, nameof(code)); Ensure.ArgumentNotNull(redirectUri, nameof(redirectUri)); ClientId = clientId; ClientSecret = clientSecret; Code = code; RedirectUri = redirectUri; } /// /// The Client ID of your Spotify Application (See Spotify Dev Dashboard). /// /// public string ClientId { get; } /// /// The Client Secret of your Spotify Application (See Spotify Dev Dashboard). /// /// public string ClientSecret { 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; } } }