2
0

ItemInfo.cs 909 B

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