Spotify.NET/SpotifyAPI.Web/Models/Request/FollowCheckCurrentUserRequest.cs

31 lines
598 B
C#

using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class FollowCheckCurrentUserRequest : RequestParams
{
public FollowCheckCurrentUserRequest(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; }
[QueryParam("ids")]
public IList<string> Ids { get; }
public enum Type
{
[String("artist")]
Artist,
[String("user")]
User
}
}
}