jellyfin/MediaBrowser.Controller/Providers/ItemInfo.cs

45 lines
1.1 KiB
C#
Raw Normal View History

#pragma warning disable CS1591
2018-12-27 23:27:57 +00:00
using System;
using MediaBrowser.Controller.Entities;
using MediaBrowser.Model.Entities;
namespace MediaBrowser.Controller.Providers
{
public class ItemInfo
{
public ItemInfo(BaseItem item)
{
Path = item.Path;
ParentId = item.ParentId;
IndexNumber = item.IndexNumber;
2018-12-27 23:27:57 +00:00
ContainingFolderPath = item.ContainingFolderPath;
IsInMixedFolder = item.IsInMixedFolder;
if (item is Video video)
2018-12-27 23:27:57 +00:00
{
VideoType = video.VideoType;
IsPlaceHolder = video.IsPlaceHolder;
}
ItemType = item.GetType();
}
public Type ItemType { get; set; }
2018-12-27 23:27:57 +00:00
public string Path { get; set; }
public Guid ParentId { get; set; }
public int? IndexNumber { get; set; }
2018-12-27 23:27:57 +00:00
public string ContainingFolderPath { get; set; }
2018-12-27 23:27:57 +00:00
public VideoType VideoType { get; set; }
2018-12-27 23:27:57 +00:00
public bool IsInMixedFolder { get; set; }
2018-12-27 23:27:57 +00:00
public bool IsPlaceHolder { get; set; }
}
}