2014-06-23 18:05:19 +02:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using System.Linq;
|
2014-05-08 22:26:20 +02:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.Collections
|
|
|
|
|
{
|
|
|
|
|
public class ManualCollectionsFolder : BasePluginFolder
|
|
|
|
|
{
|
|
|
|
|
public ManualCollectionsFolder()
|
|
|
|
|
{
|
|
|
|
|
Name = "Collections";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool IsVisible(User user)
|
|
|
|
|
{
|
|
|
|
|
if (!GetChildren(user, true).Any())
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return base.IsVisible(user);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool IsHidden
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2014-07-01 06:26:50 +02:00
|
|
|
|
return true;
|
2014-05-08 22:26:20 +02:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-22 07:52:31 +02:00
|
|
|
|
|
2014-07-01 06:06:28 +02:00
|
|
|
|
public override bool IsHiddenFromUser(User user)
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
2014-06-22 07:52:31 +02:00
|
|
|
|
public override string CollectionType
|
|
|
|
|
{
|
|
|
|
|
get { return Model.Entities.CollectionType.BoxSets; }
|
|
|
|
|
}
|
2014-06-23 18:05:19 +02:00
|
|
|
|
|
|
|
|
|
public override string GetClientTypeName()
|
|
|
|
|
{
|
|
|
|
|
return typeof (CollectionFolder).Name;
|
|
|
|
|
}
|
2014-05-08 22:26:20 +02:00
|
|
|
|
}
|
|
|
|
|
}
|