ItemInfo.cs 910 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using MediaBrowser.Controller.Entities;
  3. using MediaBrowser.Model.Entities;
  4. namespace MediaBrowser.Controller.Providers
  5. {
  6. public class ItemInfo
  7. {
  8. public ItemInfo(BaseItem item)
  9. {
  10. Path = item.Path;
  11. ContainingFolderPath = item.ContainingFolderPath;
  12. IsInMixedFolder = item.IsInMixedFolder;
  13. var video = item as Video;
  14. if (video != null)
  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. }