| | | 1 | | #pragma warning disable CS1591 |
| | | 2 | | |
| | | 3 | | using System; |
| | | 4 | | using MediaBrowser.Controller.Entities; |
| | | 5 | | using MediaBrowser.Model.Entities; |
| | | 6 | | |
| | | 7 | | namespace MediaBrowser.Controller.Providers |
| | | 8 | | { |
| | | 9 | | public class ItemInfo |
| | | 10 | | { |
| | | 11 | | public ItemInfo(BaseItem item) |
| | | 12 | | { |
| | 3 | 13 | | Path = item.Path; |
| | 3 | 14 | | ParentId = item.ParentId; |
| | 3 | 15 | | IndexNumber = item.IndexNumber; |
| | 3 | 16 | | ContainingFolderPath = item.ContainingFolderPath; |
| | 3 | 17 | | IsInMixedFolder = item.IsInMixedFolder; |
| | | 18 | | |
| | 3 | 19 | | if (item is Video video) |
| | | 20 | | { |
| | 3 | 21 | | VideoType = video.VideoType; |
| | 3 | 22 | | IsPlaceHolder = video.IsPlaceHolder; |
| | | 23 | | } |
| | | 24 | | |
| | 3 | 25 | | ItemType = item.GetType(); |
| | 3 | 26 | | } |
| | | 27 | | |
| | | 28 | | public Type ItemType { get; set; } |
| | | 29 | | |
| | | 30 | | public string Path { get; set; } |
| | | 31 | | |
| | | 32 | | public Guid ParentId { get; set; } |
| | | 33 | | |
| | | 34 | | public int? IndexNumber { get; set; } |
| | | 35 | | |
| | | 36 | | public string ContainingFolderPath { get; set; } |
| | | 37 | | |
| | | 38 | | public VideoType VideoType { get; set; } |
| | | 39 | | |
| | | 40 | | public bool IsInMixedFolder { get; set; } |
| | | 41 | | |
| | | 42 | | public bool IsPlaceHolder { get; set; } |
| | | 43 | | } |
| | | 44 | | } |