2014-03-07 16:53:23 +01:00
|
|
|
|
|
2016-10-25 21:02:04 +02:00
|
|
|
|
using MediaBrowser.Model.Serialization;
|
2015-06-29 03:10:45 +02:00
|
|
|
|
|
2013-02-21 02:33:05 +01:00
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Plugins derive from and export this class to create a folder that will appear in the root along
|
|
|
|
|
/// with all the other actual physical folders in the system.
|
|
|
|
|
/// </summary>
|
2016-10-17 18:35:29 +02:00
|
|
|
|
public abstract class BasePluginFolder : Folder, ICollectionFolder
|
2013-02-21 02:33:05 +01:00
|
|
|
|
{
|
2017-06-29 21:10:58 +02:00
|
|
|
|
[IgnoreDataMember]
|
2014-06-22 07:52:31 +02:00
|
|
|
|
public virtual string CollectionType
|
2014-06-15 01:13:09 +02:00
|
|
|
|
{
|
2014-07-30 05:31:35 +02:00
|
|
|
|
get { return null; }
|
2014-06-15 01:13:09 +02:00
|
|
|
|
}
|
2015-02-06 06:39:07 +01:00
|
|
|
|
|
|
|
|
|
public override bool CanDelete()
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
2015-02-19 20:00:56 +01:00
|
|
|
|
|
|
|
|
|
public override bool IsSaveLocalMetadataEnabled()
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2015-06-29 03:10:45 +02:00
|
|
|
|
|
2017-06-29 21:10:58 +02:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool SupportsInheritedParentImages
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-06-29 03:10:45 +02:00
|
|
|
|
[IgnoreDataMember]
|
|
|
|
|
public override bool SupportsPeople
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-22 22:33:01 +02:00
|
|
|
|
|
|
|
|
|
public override double? GetDefaultPrimaryImageAspectRatio()
|
|
|
|
|
{
|
|
|
|
|
double value = 16;
|
|
|
|
|
value /= 9;
|
|
|
|
|
|
|
|
|
|
return value;
|
|
|
|
|
}
|
2013-02-21 02:33:05 +01:00
|
|
|
|
}
|
|
|
|
|
}
|