mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 07:26:28 +00:00
30 lines
568 B
C#
30 lines
568 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
|
|
}
|
|
}
|
|
}
|