2
0

PlaylistCreationRequest.cs 860 B

12345678910111213141516171819202122232425262728293031323334353637
  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; } = Array.Empty<Guid>();
  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 shares.
  29. /// </summary>
  30. public Share[]? Shares { get; set; }
  31. }