namespace SpotifyAPI.Web { public class PlaylistCreateRequest : RequestParams { /// /// /// /// The name for the new playlist, for example "Your Coolest Playlist" . /// This name does not need to be unique; a user may have several playlists with the same name. /// public PlaylistCreateRequest(string name) { Ensure.ArgumentNotNullOrEmptyString(name, nameof(name)); Name = name; } /// /// The name for the new playlist, for example "Your Coolest Playlist" . /// This name does not need to be unique; a user may have several playlists with the same name. /// /// [BodyParam("name")] public string Name { get; } /// /// Defaults to true . If true the playlist will be public, if false it will be private. /// To be able to create private playlists, the user must have granted the playlist-modify-private scope /// /// [BodyParam("public")] public bool? Public { get; set; } /// /// Defaults to false . If true the playlist will be collaborative. /// Note that to create a collaborative playlist you must also set public to false . /// To create collaborative playlists you must have /// granted playlist-modify-private and playlist-modify-public scopes . /// /// [BodyParam("collaborative")] public bool? Collaborative { get; set; } /// /// value for playlist description as displayed in Spotify Clients and in the Web API. /// /// [BodyParam("description")] public string? Description { get; set; } } }