2020-05-03 00:00:35 +01:00
|
|
|
namespace SpotifyAPI.Web
|
|
|
|
{
|
|
|
|
public class PlaylistCreateRequest : RequestParams
|
|
|
|
{
|
|
|
|
public PlaylistCreateRequest(string name)
|
|
|
|
{
|
2020-05-05 14:30:00 +01:00
|
|
|
Ensure.ArgumentNotNullOrEmptyString(name, nameof(name));
|
|
|
|
|
2020-05-03 00:00:35 +01:00
|
|
|
Name = name;
|
|
|
|
}
|
|
|
|
|
|
|
|
[BodyParam("name")]
|
2020-05-05 14:30:00 +01:00
|
|
|
public string Name { get; }
|
2020-05-03 00:00:35 +01:00
|
|
|
|
|
|
|
[BodyParam("public")]
|
|
|
|
public bool? Public { get; set; }
|
|
|
|
|
|
|
|
[BodyParam("collaborative")]
|
|
|
|
public bool? Collaborative { get; set; }
|
|
|
|
|
|
|
|
[BodyParam("description")]
|
2020-05-25 17:00:38 +01:00
|
|
|
public string? Description { get; set; }
|
2020-05-03 00:00:35 +01:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 17:00:38 +01:00
|
|
|
|