BasePluginFolder.cs 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. //public override double? GetDefaultPrimaryImageAspectRatio()
  41. //{
  42. // double value = 16;
  43. // value /= 9;
  44. // return value;
  45. //}
  46. }
  47. }