ItemInfo.cs 942 B

123456789101112131415161718192021222324252627282930313233343536373839
  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. var video = item as Video;
  15. if (video != null)
  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. }