2015-05-15 15:46:20 +00:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
2015-03-13 19:37:19 +00:00
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public class ItemInfo
|
|
|
|
{
|
2015-05-15 15:46:20 +00:00
|
|
|
public ItemInfo()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
public ItemInfo(IHasMetadata item)
|
|
|
|
{
|
|
|
|
Path = item.Path;
|
|
|
|
ContainingFolderPath = item.ContainingFolderPath;
|
|
|
|
IsInMixedFolder = item.IsInMixedFolder;
|
2015-03-13 19:37:19 +00:00
|
|
|
|
2015-05-15 15:46:20 +00:00
|
|
|
var video = item as Video;
|
|
|
|
if (video != null)
|
|
|
|
{
|
|
|
|
VideoType = video.VideoType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
public string ContainingFolderPath { get; set; }
|
|
|
|
public VideoType VideoType { get; set; }
|
2015-03-13 19:37:19 +00:00
|
|
|
public bool IsInMixedFolder { get; set; }
|
|
|
|
}
|
|
|
|
}
|