IItemTypeLookup.cs 685 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using Jellyfin.Data.Enums;
  4. using MediaBrowser.Model.Querying;
  5. namespace MediaBrowser.Controller.Persistence;
  6. /// <summary>
  7. /// Provides static lookup data for <see cref="ItemFields"/> and <see cref="BaseItemKind"/> for the domain.
  8. /// </summary>
  9. public interface IItemTypeLookup
  10. {
  11. /// <summary>
  12. /// Gets all serialisation target types for music related kinds.
  13. /// </summary>
  14. IReadOnlyList<string> MusicGenreTypes { get; }
  15. /// <summary>
  16. /// Gets mapping for all BaseItemKinds and their expected serialization target.
  17. /// </summary>
  18. IReadOnlyDictionary<BaseItemKind, string> BaseItemKindNames { get; }
  19. }