mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Add Locale param (#835)
* Add Locale * Add ArtistRequest, ArtistsRelatedArtistsRequest * Add ArtistRequest, ArtistsRelatedArtistsRequest * Add Locale
This commit is contained in:
parent
2bfb7ba714
commit
d5059820b6
@ -16,6 +16,13 @@ namespace SpotifyAPI.Web
|
||||
return API.Get<FullArtist>(URLs.Artist(artistId), cancel);
|
||||
}
|
||||
|
||||
public Task<FullArtist> Get(string artistId, ArtistRequest request, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));
|
||||
|
||||
return API.Get<FullArtist>(URLs.Artist(artistId), request.BuildQueryParams(), cancel);
|
||||
}
|
||||
|
||||
public Task<Paging<SimpleAlbum>> GetAlbums(string artistId, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));
|
||||
@ -38,6 +45,13 @@ namespace SpotifyAPI.Web
|
||||
return API.Get<ArtistsRelatedArtistsResponse>(URLs.ArtistRelatedArtists(artistId), cancel);
|
||||
}
|
||||
|
||||
public Task<ArtistsRelatedArtistsResponse> GetRelatedArtists(string artistId, ArtistsRelatedArtistsRequest request, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNullOrEmptyString(artistId, nameof(artistId));
|
||||
|
||||
return API.Get<ArtistsRelatedArtistsResponse>(URLs.ArtistRelatedArtists(artistId), request.BuildQueryParams(), cancel);
|
||||
}
|
||||
|
||||
public Task<ArtistsResponse> GetSeveral(ArtistsRequest request, CancellationToken cancel = default)
|
||||
{
|
||||
Ensure.ArgumentNotNull(request, nameof(request));
|
||||
|
@ -31,6 +31,18 @@ namespace SpotifyAPI.Web
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
||||
Task<FullArtist> Get(string artistId, CancellationToken cancel = default);
|
||||
|
||||
/// <summary>
|
||||
/// Get Spotify catalog information for a single artist identified by their unique Spotify ID.
|
||||
/// </summary>
|
||||
/// <param name="artistId">The Spotify ID of the artist.</param>
|
||||
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
||||
/// <remarks>
|
||||
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-artist
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1716")]
|
||||
Task<FullArtist> Get(string artistId, ArtistRequest request, CancellationToken cancel = default);
|
||||
|
||||
/// <summary>
|
||||
/// Get Spotify catalog information about an artist’s albums.
|
||||
/// Optional parameters can be specified in the query string to filter and sort the response.
|
||||
@ -81,5 +93,17 @@ namespace SpotifyAPI.Web
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
Task<ArtistsRelatedArtistsResponse> GetRelatedArtists(string artistId, CancellationToken cancel = default);
|
||||
|
||||
/// <summary>
|
||||
/// Get Spotify catalog information about artists similar to a given artist.
|
||||
/// Similarity is based on analysis of the Spotify community’s listening history.
|
||||
/// </summary>
|
||||
/// <param name="artistId">The Spotify ID for the artist</param>
|
||||
/// <param name="cancel">The cancellation-token to allow to cancel the request.</param>
|
||||
/// <remarks>
|
||||
/// https://developer.spotify.com/documentation/web-api/reference-beta/#endpoint-get-an-artists-related-artists
|
||||
/// </remarks>
|
||||
/// <returns></returns>
|
||||
Task<ArtistsRelatedArtistsResponse> GetRelatedArtists(string artistId, ArtistsRelatedArtistsRequest request, CancellationToken cancel = default);
|
||||
}
|
||||
}
|
||||
|
@ -8,5 +8,16 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -24,6 +24,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
19
SpotifyAPI.Web/Models/Request/ArtistRequest.cs
Normal file
19
SpotifyAPI.Web/Models/Request/ArtistRequest.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SpotifyAPI.Web
|
||||
{
|
||||
public class ArtistRequest : RequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -23,6 +23,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The number of album objects to return. Default: 20. Minimum: 1. Maximum: 50. For example: limit=2
|
||||
/// </summary>
|
||||
|
@ -0,0 +1,17 @@
|
||||
namespace SpotifyAPI.Web
|
||||
{
|
||||
public class ArtistsRelatedArtistsRequest : RequestParams
|
||||
{
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -21,6 +21,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("ids")]
|
||||
public IList<string> Ids { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -19,6 +19,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string Market { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("country")]
|
||||
public string? Country { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
|
||||
/// </summary>
|
||||
|
@ -13,6 +13,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -25,6 +25,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The last artist ID retrieved from the previous request.
|
||||
/// </summary>
|
||||
|
@ -24,6 +24,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -24,5 +24,16 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -24,6 +24,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -11,6 +11,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("country")]
|
||||
public string? Country { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.
|
||||
/// </summary>
|
||||
|
@ -9,6 +9,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The index of the first entity to return. Default: 0 (i.e., the first track). Use with limit to get the next set of entities.
|
||||
/// </summary>
|
||||
|
@ -25,6 +25,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This is set to `"track", "episode"` by default.
|
||||
/// </summary>
|
||||
|
@ -29,6 +29,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A comma-separated list of item types that your client supports besides the default track type.
|
||||
/// Valid types are: track and episode. An unsupported type in the response is expected to be represented
|
||||
|
@ -9,6 +9,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A Unix timestamp in milliseconds. Returns all items after (but not including) this cursor position.
|
||||
/// If after is specified, before must not be specified.
|
||||
|
@ -9,6 +9,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("limit")]
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The index of the first playlist to return.
|
||||
/// Default: 0 (the first object). Maximum offset: 100.000. Use with limit to get the next set of playlists.
|
||||
|
@ -65,6 +65,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This is set to `"track", "episode"` by default.
|
||||
/// </summary>
|
||||
|
@ -39,6 +39,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// This is set to `"track", "episode"` by default.
|
||||
/// </summary>
|
||||
|
@ -16,6 +16,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("offset")]
|
||||
public int? Offset { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,6 +60,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Multiple values. For each tunable track attribute, a hard floor on the selected track attribute’s value can be provided.
|
||||
/// See tunable track attributes below for the list of available options.
|
||||
|
@ -59,6 +59,17 @@ namespace SpotifyAPI.Web
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Maximum number of results to return.
|
||||
/// Default: 20
|
||||
|
@ -9,6 +9,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,17 @@ namespace SpotifyAPI.Web
|
||||
/// <value></value>
|
||||
[QueryParam("market")]
|
||||
public string? Market { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The desired language, consisting of an ISO 639-1 language code and an ISO 3166-1 alpha-2 country code,
|
||||
/// joined by an underscore. For example: es_MX, meaning "Spanish (Mexico)".
|
||||
/// Provide this parameter if you want the category strings returned in a particular language.
|
||||
/// Note that, if locale is not supplied, or if the specified language is not available,
|
||||
/// the category strings returned will be in the Spotify default language (American English).
|
||||
/// </summary>
|
||||
/// <value></value>
|
||||
[QueryParam("locale")]
|
||||
public string? Locale { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user