ManualCollectionsFolder.cs 881 B

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