VirtualFolderInfo.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Text.Json.Serialization;
  5. using Jellyfin.Extensions.Json.Converters;
  6. using MediaBrowser.Model.Configuration;
  7. namespace MediaBrowser.Model.Entities
  8. {
  9. /// <summary>
  10. /// Used to hold information about a user's list of configured virtual folders.
  11. /// </summary>
  12. public class VirtualFolderInfo
  13. {
  14. /// <summary>
  15. /// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
  16. /// </summary>
  17. public VirtualFolderInfo()
  18. {
  19. Locations = Array.Empty<string>();
  20. }
  21. /// <summary>
  22. /// Gets or sets the name.
  23. /// </summary>
  24. /// <value>The name.</value>
  25. public string Name { get; set; }
  26. /// <summary>
  27. /// Gets or sets the locations.
  28. /// </summary>
  29. /// <value>The locations.</value>
  30. public string[] Locations { get; set; }
  31. /// <summary>
  32. /// Gets or sets the type of the collection.
  33. /// </summary>
  34. /// <value>The type of the collection.</value>
  35. [JsonConverter(typeof(JsonLowerCaseConverter<CollectionTypeOptions?>))]
  36. public CollectionTypeOptions? CollectionType { get; set; }
  37. public LibraryOptions LibraryOptions { get; set; }
  38. /// <summary>
  39. /// Gets or sets the item identifier.
  40. /// </summary>
  41. /// <value>The item identifier.</value>
  42. public string ItemId { get; set; }
  43. /// <summary>
  44. /// Gets or sets the primary image item identifier.
  45. /// </summary>
  46. /// <value>The primary image item identifier.</value>
  47. public string PrimaryImageItemId { get; set; }
  48. public double? RefreshProgress { get; set; }
  49. public string RefreshStatus { get; set; }
  50. }
  51. }