ItemInfo.cs 928 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using MediaBrowser.Controller.Entities;
  5. using MediaBrowser.Model.Entities;
  6. namespace MediaBrowser.Controller.Providers
  7. {
  8. public class ItemInfo
  9. {
  10. public ItemInfo(BaseItem item)
  11. {
  12. Path = item.Path;
  13. ContainingFolderPath = item.ContainingFolderPath;
  14. IsInMixedFolder = item.IsInMixedFolder;
  15. if (item is Video video)
  16. {
  17. VideoType = video.VideoType;
  18. IsPlaceHolder = video.IsPlaceHolder;
  19. }
  20. ItemType = item.GetType();
  21. }
  22. public Type ItemType { get; set; }
  23. public string Path { get; set; }
  24. public string ContainingFolderPath { get; set; }
  25. public VideoType VideoType { get; set; }
  26. public bool IsInMixedFolder { get; set; }
  27. public bool IsPlaceHolder { get; set; }
  28. }
  29. }