ItemInfo.cs 858 B

1234567891011121314151617181920212223242526272829303132
  1. using MediaBrowser.Controller.Entities;
  2. using MediaBrowser.Model.Entities;
  3. namespace MediaBrowser.Controller.Providers
  4. {
  5. public class ItemInfo
  6. {
  7. public ItemInfo()
  8. {
  9. }
  10. public ItemInfo(IHasMetadata item)
  11. {
  12. Path = item.Path;
  13. ContainingFolderPath = item.ContainingFolderPath;
  14. IsInMixedFolder = item.IsInMixedFolder;
  15. var video = item as Video;
  16. if (video != null)
  17. {
  18. VideoType = video.VideoType;
  19. IsPlaceHolder = video.IsPlaceHolder;
  20. }
  21. }
  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. }