jellyfin/MediaBrowser.Controller/Collections/ManualCollectionsFolder.cs

47 lines
1.1 KiB
C#
Raw Normal View History

2014-06-23 09:05:19 -07:00
using MediaBrowser.Controller.Entities;
2017-06-29 12:10:58 -07:00
using MediaBrowser.Model.Serialization;
2016-09-05 13:07:36 -07:00
namespace MediaBrowser.Controller.Collections
{
2015-11-11 07:56:31 -07:00
public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
{
public ManualCollectionsFolder()
{
Name = "Collections";
DisplayMediaType = "CollectionFolder";
}
public override bool IsHidden
{
get
{
2014-06-30 21:26:50 -07:00
return true;
}
}
2014-06-21 22:52:31 -07:00
2017-06-29 12:10:58 -07:00
[IgnoreDataMember]
public override bool SupportsInheritedParentImages
{
get
{
return false;
}
}
2015-11-11 07:56:31 -07:00
public bool IsHiddenFromUser(User user)
2014-06-30 21:06:28 -07:00
{
2016-06-13 12:02:48 -07:00
return !ConfigurationManager.Configuration.DisplayCollectionsView;
2014-06-30 21:06:28 -07:00
}
2017-06-29 12:10:58 -07:00
[IgnoreDataMember]
2014-06-21 22:52:31 -07:00
public override string CollectionType
{
get { return Model.Entities.CollectionType.BoxSets; }
}
2014-06-23 09:05:19 -07:00
public override string GetClientTypeName()
{
2015-11-11 07:56:31 -07:00
return typeof(CollectionFolder).Name;
2014-06-23 09:05:19 -07:00
}
}
}