UserMetadataService.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. using MediaBrowser.Common.IO;
  2. using MediaBrowser.Controller.Configuration;
  3. using MediaBrowser.Controller.Entities;
  4. using MediaBrowser.Controller.Library;
  5. using MediaBrowser.Controller.Providers;
  6. using MediaBrowser.Model.Entities;
  7. using MediaBrowser.Model.Logging;
  8. using MediaBrowser.Providers.Manager;
  9. using System.Collections.Generic;
  10. using System.Threading;
  11. using System.Threading.Tasks;
  12. namespace MediaBrowser.Providers.Users
  13. {
  14. public class UserMetadataService : MetadataService<User, ItemLookupInfo>
  15. {
  16. public UserMetadataService(IServerConfigurationManager serverConfigurationManager, ILogger logger, IProviderManager providerManager, IProviderRepository providerRepo, IFileSystem fileSystem, IUserDataManager userDataManager) : base(serverConfigurationManager, logger, providerManager, providerRepo, fileSystem, userDataManager)
  17. {
  18. }
  19. /// <summary>
  20. /// Merges the specified source.
  21. /// </summary>
  22. /// <param name="source">The source.</param>
  23. /// <param name="target">The target.</param>
  24. /// <param name="lockedFields">The locked fields.</param>
  25. /// <param name="replaceData">if set to <c>true</c> [replace data].</param>
  26. /// <param name="mergeMetadataSettings">if set to <c>true</c> [merge metadata settings].</param>
  27. protected override void MergeData(User source, User target, List<MetadataFields> lockedFields, bool replaceData, bool mergeMetadataSettings)
  28. {
  29. ProviderUtils.MergeBaseItemData(source, target, lockedFields, replaceData, mergeMetadataSettings);
  30. }
  31. }
  32. }