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

28 lines
535 B
C#
Raw Normal View History

2020-05-04 22:02:53 +01:00
using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class FollowCheckCurrentUserRequest : RequestParams
{
[QueryParam("type")]
public Types? Type { get; set; }
[QueryParam("ids")]
public List<string> Ids { get; set; }
protected override void CustomEnsure()
{
Ensure.ArgumentNotNull(Type, nameof(Type));
Ensure.ArgumentNotNullOrEmptyList(Ids, nameof(Ids));
}
public enum Types
{
[String("artist")]
Artist,
[String("user")]
User
}
}
}