PlaylistCreationRequest.cs 1.0 KB

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