IPeopleRepository.cs 976 B

123456789101112131415161718192021222324252627282930313233
  1. #nullable disable
  2. #pragma warning disable CS1591
  3. using System;
  4. using System.Collections.Generic;
  5. using MediaBrowser.Controller.Entities;
  6. namespace MediaBrowser.Controller.Persistence;
  7. public interface IPeopleRepository
  8. {
  9. /// <summary>
  10. /// Gets the people.
  11. /// </summary>
  12. /// <param name="filter">The query.</param>
  13. /// <returns>The list of people matching the filter.</returns>
  14. IReadOnlyList<PersonInfo> GetPeople(InternalPeopleQuery filter);
  15. /// <summary>
  16. /// Updates the people.
  17. /// </summary>
  18. /// <param name="itemId">The item identifier.</param>
  19. /// <param name="people">The people.</param>
  20. void UpdatePeople(Guid itemId, IReadOnlyList<PersonInfo> people);
  21. /// <summary>
  22. /// Gets the people names.
  23. /// </summary>
  24. /// <param name="filter">The query.</param>
  25. /// <returns>The list of people names matching the filter.</returns>
  26. IReadOnlyList<string> GetPeopleNames(InternalPeopleQuery filter);
  27. }