aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/Folder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Model/Entities/Folder.cs')
-rw-r--r--MediaBrowser.Model/Entities/Folder.cs18
1 files changed, 12 insertions, 6 deletions
diff --git a/MediaBrowser.Model/Entities/Folder.cs b/MediaBrowser.Model/Entities/Folder.cs
index 6af9bf259..5ae47fea3 100644
--- a/MediaBrowser.Model/Entities/Folder.cs
+++ b/MediaBrowser.Model/Entities/Folder.cs
@@ -1,10 +1,8 @@
using System;
using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
using System.IO;
-using Newtonsoft.Json;
+using System.Linq;
+using System.Runtime.Serialization;
namespace MediaBrowser.Model.Entities
{
@@ -20,10 +18,18 @@ namespace MediaBrowser.Model.Entities
}
}
- [JsonIgnore]
+ public override bool IsFolder
+ {
+ get
+ {
+ return true;
+ }
+ }
+
+ [IgnoreDataMember]
public BaseItem[] Children { get; set; }
- [JsonIgnore]
+ [IgnoreDataMember]
public IEnumerable<Folder> FolderChildren { get { return Children.OfType<Folder>(); } }
public Folder GetFolderByName(string name)