BasePluginFolder.cs 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 
  2. using MediaBrowser.Model.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. [IgnoreDataMember]
  12. public virtual string CollectionType
  13. {
  14. get { return null; }
  15. }
  16. public override bool CanDelete()
  17. {
  18. return false;
  19. }
  20. public override bool IsSaveLocalMetadataEnabled()
  21. {
  22. return true;
  23. }
  24. [IgnoreDataMember]
  25. public override bool SupportsInheritedParentImages
  26. {
  27. get
  28. {
  29. return false;
  30. }
  31. }
  32. [IgnoreDataMember]
  33. public override bool SupportsPeople
  34. {
  35. get
  36. {
  37. return false;
  38. }
  39. }
  40. }
  41. }