RemoveFromPlaylistRequestDto.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. using System;
  2. using System.Collections.Generic;
  3. namespace Jellyfin.Api.Models.SyncPlayDtos;
  4. /// <summary>
  5. /// Class RemoveFromPlaylistRequestDto.
  6. /// </summary>
  7. public class RemoveFromPlaylistRequestDto
  8. {
  9. /// <summary>
  10. /// Initializes a new instance of the <see cref="RemoveFromPlaylistRequestDto"/> class.
  11. /// </summary>
  12. public RemoveFromPlaylistRequestDto()
  13. {
  14. PlaylistItemIds = Array.Empty<Guid>();
  15. }
  16. /// <summary>
  17. /// Gets or sets the playlist identifiers of the items. Ignored when clearing the playlist.
  18. /// </summary>
  19. /// <value>The playlist identifiers of the items.</value>
  20. public IReadOnlyList<Guid> PlaylistItemIds { get; set; }
  21. /// <summary>
  22. /// Gets or sets a value indicating whether the entire playlist should be cleared.
  23. /// </summary>
  24. /// <value>Whether the entire playlist should be cleared.</value>
  25. public bool ClearPlaylist { get; set; }
  26. /// <summary>
  27. /// Gets or sets a value indicating whether the playing item should be removed as well. Used only when clearing the playlist.
  28. /// </summary>
  29. /// <value>Whether the playing item should be removed as well.</value>
  30. public bool ClearPlayingItem { get; set; }
  31. }