2014-06-23 16:05:19 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
|
|
|
|
using System.Linq;
|
2014-05-08 20:26:20 +00:00
|
|
|
|
|
|
|
|
|
namespace MediaBrowser.Server.Implementations.Collections
|
|
|
|
|
{
|
|
|
|
|
public class ManualCollectionsFolder : BasePluginFolder
|
|
|
|
|
{
|
|
|
|
|
public ManualCollectionsFolder()
|
|
|
|
|
{
|
|
|
|
|
Name = "Collections";
|
2014-08-03 02:16:37 +00:00
|
|
|
|
DisplayMediaType = "CollectionFolder";
|
2014-05-08 20:26:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override bool IsHidden
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
2014-07-01 04:26:50 +00:00
|
|
|
|
return true;
|
2014-05-08 20:26:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2014-06-22 05:52:31 +00:00
|
|
|
|
|
2014-07-01 04:06:28 +00:00
|
|
|
|
public override bool IsHiddenFromUser(User user)
|
|
|
|
|
{
|
2014-07-13 21:03:57 +00:00
|
|
|
|
return !user.Configuration.DisplayCollectionsView;
|
2014-07-01 04:06:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2014-06-22 05:52:31 +00:00
|
|
|
|
public override string CollectionType
|
|
|
|
|
{
|
|
|
|
|
get { return Model.Entities.CollectionType.BoxSets; }
|
|
|
|
|
}
|
2014-06-23 16:05:19 +00:00
|
|
|
|
|
|
|
|
|
public override string GetClientTypeName()
|
|
|
|
|
{
|
|
|
|
|
return typeof (CollectionFolder).Name;
|
|
|
|
|
}
|
2014-05-08 20:26:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|