mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-01 13:28:27 +01:00
Naming refactoring and WIP porting of new interface repositories
This commit is contained in:
@@ -52,7 +52,6 @@ public interface IItemRepository : IDisposable
|
||||
/// <returns>List<Guid>.</returns>
|
||||
IReadOnlyList<Guid> GetItemIdsList(InternalItemsQuery filter);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the item list.
|
||||
/// </summary>
|
||||
|
||||
57
MediaBrowser.Controller/Persistence/IItemTypeLookup.cs
Normal file
57
MediaBrowser.Controller/Persistence/IItemTypeLookup.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Data.Enums;
|
||||
using MediaBrowser.Model.Querying;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence;
|
||||
|
||||
/// <summary>
|
||||
/// Provides static lookup data for <see cref="ItemFields"/> and <see cref="BaseItemKind"/> for the domain.
|
||||
/// </summary>
|
||||
public interface IItemTypeLookup
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets all values of the ItemFields type.
|
||||
/// </summary>
|
||||
public IReadOnlyList<ItemFields> AllItemFields { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that are considered Programs.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> ProgramTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that should be excluded from parent lookup.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> ProgramExcludeParentTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that are considered to be provided by services.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> ServiceTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that have a StartDate.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> StartDateTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that are considered Series.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> SeriesTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that are not to be evaluated for Artists.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> ArtistExcludeParentTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets all BaseItemKinds that are considered Artists.
|
||||
/// </summary>
|
||||
public IReadOnlyList<BaseItemKind> ArtistsTypes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets mapping for all BaseItemKinds and their expected serialisaition target.
|
||||
/// </summary>
|
||||
public IDictionary<BaseItemKind, string?> BaseItemKindNames { get; }
|
||||
}
|
||||
@@ -9,9 +9,8 @@ using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence;
|
||||
|
||||
public interface IMediaAttachmentManager
|
||||
public interface IMediaAttachmentRepository
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Gets the media attachments.
|
||||
/// </summary>
|
||||
@@ -9,14 +9,17 @@ using MediaBrowser.Model.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence;
|
||||
|
||||
public interface IMediaStreamManager
|
||||
/// <summary>
|
||||
/// Provides methods for accessing MediaStreams.
|
||||
/// </summary>
|
||||
public interface IMediaStreamRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the media streams.
|
||||
/// </summary>
|
||||
/// <param name="filter">The query.</param>
|
||||
/// <returns>IEnumerable{MediaStream}.</returns>
|
||||
List<MediaStream> GetMediaStreams(MediaStreamQuery filter);
|
||||
IReadOnlyList<MediaStream> GetMediaStreams(MediaStreamQuery filter);
|
||||
|
||||
/// <summary>
|
||||
/// Saves the media streams.
|
||||
@@ -8,7 +8,7 @@ using MediaBrowser.Controller.Entities;
|
||||
|
||||
namespace MediaBrowser.Controller.Persistence;
|
||||
|
||||
public interface IPeopleManager
|
||||
public interface IPeopleRepository
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the people.
|
||||
@@ -30,5 +30,4 @@ public interface IPeopleManager
|
||||
/// <param name="filter">The query.</param>
|
||||
/// <returns>List<System.String>.</returns>
|
||||
IReadOnlyList<string> GetPeopleNames(InternalPeopleQuery filter);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user