mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-10-17 07:23:08 +01:00
28 lines
518 B
C#
28 lines
518 B
C#
using System.Collections.Generic;
|
|
|
|
namespace SpotifyAPI.Web
|
|
{
|
|
public class FollowRequest : RequestParams
|
|
{
|
|
[QueryParam("type")]
|
|
public Types? Type { get; set; }
|
|
|
|
[BodyParam("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
|
|
}
|
|
}
|
|
}
|