VirtualFolderInfo.cs 1.8 KB

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