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

31 lines
571 B
C#
Raw Normal View History

2020-05-04 22:02:53 +01:00
using System.Collections.Generic;
namespace SpotifyAPI.Web
{
public class FollowRequest : RequestParams
{
public FollowRequest(Type type, IList<string> ids)
{
Ensure.ArgumentNotNull(type, nameof(type));
Ensure.ArgumentNotNullOrEmptyList(ids, nameof(ids));
TypeParam = type;
Ids = ids;
}
2020-05-04 22:02:53 +01:00
[QueryParam("type")]
2020-05-05 04:45:33 +01:00
public Type? TypeParam { get; set; }
2020-05-04 22:02:53 +01:00
[BodyParam("ids")]
public IList<string> Ids { get; }
2020-05-04 22:02:53 +01:00
2020-05-05 04:45:33 +01:00
public enum Type
2020-05-04 22:02:53 +01:00
{
[String("artist")]
Artist,
[String("user")]
User
}
}
}