2014-06-23 16:05:19 +00:00
|
|
|
|
using MediaBrowser.Controller.Entities;
|
2017-06-29 19:10:58 +00:00
|
|
|
|
using MediaBrowser.Model.Serialization;
|
2014-05-08 20:26:20 +00:00
|
|
|
|
|
2016-09-05 20:07:36 +00:00
|
|
|
|
namespace MediaBrowser.Controller.Collections
|
2014-05-08 20:26:20 +00:00
|
|
|
|
{
|
2015-11-11 14:56:31 +00:00
|
|
|
|
public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
|
2014-05-08 20:26:20 +00:00
|
|
|
|
{
|
|
|
|
|
public ManualCollectionsFolder()
|
|
|
|
|
{
|
|
|
|
|
Name = "Collections";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2017-06-29 19:10:58 +00:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool SupportsInheritedParentImages
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-11-11 14:56:31 +00:00
|
|
|
|
public bool IsHiddenFromUser(User user)
|
2014-07-01 04:06:28 +00:00
|
|
|
|
{
|
2016-06-13 19:02:48 +00:00
|
|
|
|
return !ConfigurationManager.Configuration.DisplayCollectionsView;
|
2014-07-01 04:06:28 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-06-29 19:10:58 +00:00
|
|
|
|
[IgnoreDataMember]
|
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()
|
|
|
|
|
{
|
2015-11-11 14:56:31 +00:00
|
|
|
|
return typeof(CollectionFolder).Name;
|
2014-06-23 16:05:19 +00:00
|
|
|
|
}
|
2014-05-08 20:26:20 +00:00
|
|
|
|
}
|
|
|
|
|
}
|