| | | 1 | | using System; |
| | | 2 | | using System.Collections.Generic; |
| | | 3 | | using Jellyfin.Data.Enums; |
| | | 4 | | using MediaBrowser.Model.Entities; |
| | | 5 | | |
| | | 6 | | namespace MediaBrowser.Model.Playlists; |
| | | 7 | | |
| | | 8 | | /// <summary> |
| | | 9 | | /// A playlist creation request. |
| | | 10 | | /// </summary> |
| | | 11 | | public class PlaylistCreationRequest |
| | | 12 | | { |
| | | 13 | | /// <summary> |
| | | 14 | | /// Gets or sets the name. |
| | | 15 | | /// </summary> |
| | | 16 | | public string? Name { get; set; } |
| | | 17 | | |
| | | 18 | | /// <summary> |
| | | 19 | | /// Gets or sets the list of items. |
| | | 20 | | /// </summary> |
| | | 21 | | public IReadOnlyList<Guid> ItemIdList { get; set; } = []; |
| | | 22 | | |
| | | 23 | | /// <summary> |
| | | 24 | | /// Gets or sets the media type. |
| | | 25 | | /// </summary> |
| | | 26 | | public MediaType? MediaType { get; set; } |
| | | 27 | | |
| | | 28 | | /// <summary> |
| | | 29 | | /// Gets or sets the user id. |
| | | 30 | | /// </summary> |
| | | 31 | | public Guid UserId { get; set; } |
| | | 32 | | |
| | | 33 | | /// <summary> |
| | | 34 | | /// Gets or sets the user permissions. |
| | | 35 | | /// </summary> |
| | | 36 | | public IReadOnlyList<PlaylistUserPermissions> Users { get; set; } = []; |
| | | 37 | | |
| | | 38 | | /// <summary> |
| | | 39 | | /// Gets or sets a value indicating whether the playlist is public. |
| | | 40 | | /// </summary> |
| | 0 | 41 | | public bool? Public { get; set; } = false; |
| | | 42 | | } |