2020-05-04 22:02:53 +01:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class FollowRequest : RequestParams
|
|
|
|
{
|
|
|
|
[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 List<string> Ids { get; set; }
|
|
|
|
|
|
|
|
protected override void CustomEnsure()
|
|
|
|
{
|
2020-05-05 04:45:33 +01:00
|
|
|
Ensure.ArgumentNotNull(TypeParam, nameof(TypeParam));
|
2020-05-04 22:02:53 +01:00
|
|
|
Ensure.ArgumentNotNullOrEmptyList(Ids, nameof(Ids));
|
|
|
|
}
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|