2
0

ManualCollectionsFolder.cs 878 B

123456789101112131415161718192021222324252627282930313233343536
  1. using MediaBrowser.Controller.Entities;
  2. namespace MediaBrowser.Server.Implementations.Collections
  3. {
  4. public class ManualCollectionsFolder : BasePluginFolder, IHiddenFromDisplay
  5. {
  6. public ManualCollectionsFolder()
  7. {
  8. Name = "Collections";
  9. DisplayMediaType = "CollectionFolder";
  10. }
  11. public override bool IsHidden
  12. {
  13. get
  14. {
  15. return true;
  16. }
  17. }
  18. public bool IsHiddenFromUser(User user)
  19. {
  20. return !ConfigurationManager.Configuration.DisplayCollectionsView;
  21. }
  22. public override string CollectionType
  23. {
  24. get { return Model.Entities.CollectionType.BoxSets; }
  25. }
  26. public override string GetClientTypeName()
  27. {
  28. return typeof(CollectionFolder).Name;
  29. }
  30. }
  31. }