BasePluginFolder.cs 843 B

1234567891011121314151617181920212223242526272829303132
  1. #pragma warning disable CS1591
  2. using System.Text.Json.Serialization;
  3. namespace MediaBrowser.Controller.Entities
  4. {
  5. /// <summary>
  6. /// Plugins derive from and export this class to create a folder that will appear in the root along
  7. /// with all the other actual physical folders in the system.
  8. /// </summary>
  9. public abstract class BasePluginFolder : Folder, ICollectionFolder
  10. {
  11. [JsonIgnore]
  12. public virtual string? CollectionType => null;
  13. [JsonIgnore]
  14. public override bool SupportsInheritedParentImages => false;
  15. [JsonIgnore]
  16. public override bool SupportsPeople => false;
  17. public override bool CanDelete()
  18. {
  19. return false;
  20. }
  21. public override bool IsSaveLocalMetadataEnabled()
  22. {
  23. return true;
  24. }
  25. }
  26. }