Repository navigation
Expand file tree
/
Copy pathPlaylistCreateRequest.cs
More file actions
52 lines (46 loc) · 1.73 KB
/
Copy pathPlaylistCreateRequest.cs
File metadata and controls
52 lines (46 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
namespace SpotifyAPI.Web
{
public class PlaylistCreateRequest : RequestParams
{
/// <summary>
/// </summary>
/// <param 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.
/// </param>
public PlaylistCreateRequest(string name)
{
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
Name = name;
}
/// <summary>
/// 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.
/// </summary>
/// <value></value>
[BodyParam("name")]
public string Name { get; }
/// <summary>
/// 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
/// </summary>
/// <value></value>
[BodyParam("public")]
public bool? Public { get; set; }
/// <summary>
/// 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 .
/// </summary>
/// <value></value>
[BodyParam("collaborative")]
public bool? Collaborative { get; set; }
/// <summary>
/// value for playlist description as displayed in Spotify Clients and in the Web API.
/// </summary>
/// <value></value>
[BodyParam("description")]
public string? Description { get; set; }
}
}