UpdatePlaylistDto.cs 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text.Json.Serialization;
  4. using Jellyfin.Extensions.Json.Converters;
  5. using MediaBrowser.Model.Entities;
  6. namespace Jellyfin.Api.Models.PlaylistDtos;
  7. /// <summary>
  8. /// Update existing playlist dto. Fields set to `null` will not be updated and keep their current values.
  9. /// </summary>
  10. public class UpdatePlaylistDto
  11. {
  12. /// <summary>
  13. /// Gets or sets the name of the new playlist.
  14. /// </summary>
  15. public string? Name { get; set; }
  16. /// <summary>
  17. /// Gets or sets item ids of the playlist.
  18. /// </summary>
  19. [JsonConverter(typeof(JsonCommaDelimitedCollectionConverterFactory))]
  20. public IReadOnlyList<Guid>? Ids { get; set; }
  21. /// <summary>
  22. /// Gets or sets the playlist users.
  23. /// </summary>
  24. public IReadOnlyList<PlaylistUserPermissions>? Users { get; set; }
  25. /// <summary>
  26. /// Gets or sets a value indicating whether the playlist is public.
  27. /// </summary>
  28. public bool? IsPublic { get; set; }
  29. }