PlaylistUpdateRequest.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.Collections.Generic;
  3. using MediaBrowser.Model.Entities;
  4. namespace MediaBrowser.Model.Playlists;
  5. /// <summary>
  6. /// A playlist update request.
  7. /// </summary>
  8. public class PlaylistUpdateRequest
  9. {
  10. /// <summary>
  11. /// Gets or sets the id of the playlist.
  12. /// </summary>
  13. public Guid Id { get; set; }
  14. /// <summary>
  15. /// Gets or sets the id of the user updating the playlist.
  16. /// </summary>
  17. public Guid UserId { get; set; }
  18. /// <summary>
  19. /// Gets or sets the name of the playlist.
  20. /// </summary>
  21. public string? Name { get; set; }
  22. /// <summary>
  23. /// Gets or sets item ids to add to the playlist.
  24. /// </summary>
  25. public IReadOnlyList<Guid>? Ids { get; set; }
  26. /// <summary>
  27. /// Gets or sets the playlist users.
  28. /// </summary>
  29. public IReadOnlyList<PlaylistUserPermissions>? Users { get; set; }
  30. /// <summary>
  31. /// Gets or sets a value indicating whether the playlist is public.
  32. /// </summary>
  33. public bool? Public { get; set; }
  34. }