using System.Collections.Generic; namespace SpotifyAPI.Web { public class FollowRequest : RequestParams { /// /// /// /// The ID type: either artist or user. /// /// A comma-separated list of the artist or the user Spotify IDs. /// For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. /// A maximum of 50 IDs can be sent in one request. /// public FollowRequest(Type type, IList ids) { Ensure.ArgumentNotNull(type, nameof(type)); Ensure.ArgumentNotNullOrEmptyList(ids, nameof(ids)); TypeParam = type; Ids = ids; } /// /// The ID type: either artist or user. /// /// [QueryParam("type")] public Type? TypeParam { get; set; } /// /// A comma-separated list of the artist or the user Spotify IDs. /// For example: ids=74ASZWbe4lXaubB36ztrGX,08td7MxkoHQkXnWAYD8d6Q. /// A maximum of 50 IDs can be sent in one request. /// /// [BodyParam("ids")] public IList Ids { get; } public enum Type { [String("artist")] Artist, [String("user")] User } } }