2016-06-16 04:37:06 +02:00
|
|
|
using System;
|
2015-05-15 17:46:20 +02:00
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
using MediaBrowser.Model.Entities;
|
|
|
|
|
2015-03-13 20:37:19 +01:00
|
|
|
namespace MediaBrowser.Controller.Providers
|
|
|
|
{
|
|
|
|
public class ItemInfo
|
|
|
|
{
|
2015-05-15 17:46:20 +02:00
|
|
|
public ItemInfo(IHasMetadata item)
|
|
|
|
{
|
|
|
|
Path = item.Path;
|
|
|
|
ContainingFolderPath = item.ContainingFolderPath;
|
2017-07-31 07:16:22 +02:00
|
|
|
IsInMixedFolder = item.IsInMixedFolder;
|
2015-03-13 20:37:19 +01:00
|
|
|
|
2015-05-15 17:46:20 +02:00
|
|
|
var video = item as Video;
|
|
|
|
if (video != null)
|
|
|
|
{
|
|
|
|
VideoType = video.VideoType;
|
2015-10-08 18:22:14 +02:00
|
|
|
IsPlaceHolder = video.IsPlaceHolder;
|
2015-05-15 17:46:20 +02:00
|
|
|
}
|
2016-06-16 04:37:06 +02:00
|
|
|
|
|
|
|
ItemType = item.GetType();
|
2015-05-15 17:46:20 +02:00
|
|
|
}
|
|
|
|
|
2016-06-16 04:37:06 +02:00
|
|
|
public Type ItemType { get; set; }
|
2015-05-15 17:46:20 +02:00
|
|
|
public string Path { get; set; }
|
|
|
|
public string ContainingFolderPath { get; set; }
|
|
|
|
public VideoType VideoType { get; set; }
|
2015-03-13 20:37:19 +01:00
|
|
|
public bool IsInMixedFolder { get; set; }
|
2015-10-08 18:22:14 +02:00
|
|
|
public bool IsPlaceHolder { get; set; }
|
2015-03-13 20:37:19 +01:00
|
|
|
}
|
|
|
|
}
|