LibraryController.cs 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using MediaBrowser.Controller.Dto;
  2. using MediaBrowser.Controller.Library;
  3. using MediaBrowser.Controller.Net;
  4. using MediaBrowser.Controller.Providers;
  5. using MediaBrowser.Model.Activity;
  6. using MediaBrowser.Model.Globalization;
  7. using Microsoft.AspNetCore.Mvc;
  8. namespace Jellyfin.Api.Controllers
  9. {
  10. /// <summary>
  11. /// Library Controller.
  12. /// </summary>
  13. public class LibraryController : BaseJellyfinApiController
  14. {
  15. private readonly IProviderManager _providerManager;
  16. private readonly ILibraryManager _libraryManager;
  17. private readonly IUserManager _userManager;
  18. private readonly IDtoService _dtoService;
  19. private readonly IAuthorizationContext _authContext;
  20. private readonly IActivityManager _activityManager;
  21. private readonly ILocalizationManager _localization;
  22. private readonly ILibraryMonitor _libraryMonitor;
  23. /// <summary>
  24. /// Initializes a new instance of the <see cref="LibraryController"/> class.
  25. /// </summary>
  26. /// <param name="providerManager">Instance of the <see cref="IProviderManager"/> interface.</param>
  27. /// <param name="libraryManager">Instance of the <see cref="ILibraryManager"/> interface.</param>
  28. /// <param name="userManager">Instance of the <see cref="IUserManager"/> interface.</param>
  29. /// <param name="dtoService">Instance of the <see cref="IDtoService"/> interface.</param>
  30. /// <param name="authContext">Instance of the <see cref="IAuthorizationContext"/> interface.</param>
  31. /// <param name="activityManager">Instance of the <see cref="IActivityManager"/> interface.</param>
  32. /// <param name="localization">Instance of the <see cref="ILocalizationManager"/> interface.</param>
  33. /// <param name="libraryMonitor">Instance of the <see cref="ILibraryMonitor"/> interface.</param>
  34. public LibraryController(
  35. IProviderManager providerManager,
  36. ILibraryManager libraryManager,
  37. IUserManager userManager,
  38. IDtoService dtoService,
  39. IAuthorizationContext authContext,
  40. IActivityManager activityManager,
  41. ILocalizationManager localization,
  42. ILibraryMonitor libraryMonitor)
  43. {
  44. _providerManager = providerManager;
  45. _libraryManager = libraryManager;
  46. _userManager = userManager;
  47. _dtoService = dtoService;
  48. _authContext = authContext;
  49. _activityManager = activityManager;
  50. _localization = localization;
  51. _libraryMonitor = libraryMonitor;
  52. }
  53. }
  54. }