Spotify.NET/SpotifyAPI.Web/Models/Request/AlbumsRequest.cs
2020-05-28 16:30:17 +02:00

35 lines
893 B
C#

using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class AlbumsRequest : RequestParams
{
/// <summary>
/// AlbumsRequest
/// </summary>
/// <param name="ids">A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.</param>
public AlbumsRequest(IList<string> ids)
{
Ensure.ArgumentNotNullOrEmptyList(ids, nameof(ids));
Ids = ids;
}
/// <summary>
/// A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.
/// </summary>
/// <value></value>
[QueryParam("ids")]
public IList<string> Ids { get; }
/// <summary>
/// An ISO 3166-1 alpha-2 country code or the string from_token.
/// Provide this parameter if you want to apply Track Relinking.
/// </summary>
/// <value></value>
[QueryParam("market")]
public string? Market { get; set; }
}
}