From 6d7c29f6c833badb15d01c153005515bcb3381b5 Mon Sep 17 00:00:00 2001 From: LukePulverenti Luke Pulverenti luke pulverenti Date: Sat, 18 Aug 2012 12:45:11 -0400 Subject: [PATCH] Added IsRoot and IsVirtualFolder to DTOBaseItem --- MediaBrowser.Api/ApiService.cs | 3 +++ MediaBrowser.Model/DTO/DTOBaseItem.cs | 10 ++++++++++ 2 files changed, 13 insertions(+) diff --git a/MediaBrowser.Api/ApiService.cs b/MediaBrowser.Api/ApiService.cs index be99ef239..3a717b754 100644 --- a/MediaBrowser.Api/ApiService.cs +++ b/MediaBrowser.Api/ApiService.cs @@ -95,6 +95,9 @@ namespace MediaBrowser.Api if (folder != null) { dto.SpecialCounts = folder.GetSpecialCounts(user); + + dto.IsRoot = folder.IsRoot; + dto.IsVirtualFolder = folder.IsVirtualFolder; } return dto; diff --git a/MediaBrowser.Model/DTO/DTOBaseItem.cs b/MediaBrowser.Model/DTO/DTOBaseItem.cs index 76a9ea400..c9f16ed1d 100644 --- a/MediaBrowser.Model/DTO/DTOBaseItem.cs +++ b/MediaBrowser.Model/DTO/DTOBaseItem.cs @@ -49,6 +49,16 @@ namespace MediaBrowser.Model.DTO public bool IsFolder { get; set; } + /// + /// If the item is a Folder this will determine if it's the Root or not + /// + public bool? IsRoot { get; set; } + + /// + /// If the item is a Folder this will determine if it's a VF or not + /// + public bool? IsVirtualFolder { get; set; } + public Guid? ParentId { get; set; } public string Type { get; set; }