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. /// Initializes a new instance of the <see cref="VirtualFolderInfo"/> class.
  15. /// </summary>
  16. public VirtualFolderInfo()
  17. {
  18. Locations = Array.Empty<string>();
  19. }
  20. /// <summary>
  21. /// Gets or sets the name.
  22. /// </summary>
  23. /// <value>The name.</value>
  24. public string Name { get; set; }
  25. /// <summary>
  26. /// Gets or sets the locations.
  27. /// </summary>
  28. /// <value>The locations.</value>
  29. public string[] Locations { get; set; }
  30. /// <summary>
  31. /// Gets or sets the type of the collection.
  32. /// </summary>
  33. /// <value>The type of the collection.</value>
  34. [JsonConverter(typeof(JsonLowerCaseConverter<CollectionTypeOptions?>))]
  35. public CollectionTypeOptions? CollectionType { get; set; }
  36. public LibraryOptions LibraryOptions { get; set; }
  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. }