Spotify.NET/SpotifyAPI.Web/Models/Request/UnfollowRequest.cs
2020-05-25 18:00:47 +02:00

31 lines
569 B
C#

using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class UnfollowRequest : RequestParams
{
public UnfollowRequest(Type type, IList<string> ids)
{
Ensure.ArgumentNotNull(type, nameof(type));
Ensure.ArgumentNotNullOrEmptyList(ids, nameof(ids));
TypeParam = type;
Ids = ids;
}
[QueryParam("type")]
public Type TypeParam { get; }
[BodyParam("ids")]
public IList<string> Ids { get; }
public enum Type
{
[String("artist")]
Artist,
[String("user")]
User
}
}
}