ItemInfo.cs 757 B

123456789101112131415161718192021222324252627282930
  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. }
  20. }
  21. public string Path { get; set; }
  22. public string ContainingFolderPath { get; set; }
  23. public VideoType VideoType { get; set; }
  24. public bool IsInMixedFolder { get; set; }
  25. }
  26. }