using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class UnfollowRequest : RequestParams
{
///
///
///
/// The ID type: either artist or user.
///
/// A comma-separated list of the artist or the user Spotify IDs. F
/// or example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q.
/// A maximum of 50 IDs can be sent in one request.
///
public UnfollowRequest(Type type, IList ids)
{
Ensure.ArgumentNotNull(type, nameof(type));
Ensure.ArgumentNotNullOrEmptyList(ids, nameof(ids));
TypeParam = type;
Ids = ids;
}
///
/// The ID type: either artist or user.
///
///
[QueryParam("type")]
public Type TypeParam { get; }
///
/// A comma-separated list of the artist or the user Spotify IDs. F
/// or example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q.
/// A maximum of 50 IDs can be sent in one request.
///
///
[BodyParam("ids")]
public IList Ids { get; }
public enum Type
{
[String("artist")]
Artist,
[String("user")]
User
}
}
}