mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-02 04:12:53 +01:00
Implement Similarity providers
This commit is contained in:
37
MediaBrowser.Controller/Library/SimilarItemsQuery.cs
Normal file
37
MediaBrowser.Controller/Library/SimilarItemsQuery.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Jellyfin.Database.Implementations.Entities;
|
||||
using MediaBrowser.Controller.Dto;
|
||||
|
||||
namespace MediaBrowser.Controller.Library;
|
||||
|
||||
/// <summary>
|
||||
/// Query options for similar items requests.
|
||||
/// </summary>
|
||||
public class SimilarItemsQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the user context.
|
||||
/// </summary>
|
||||
public User? User { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the maximum number of results.
|
||||
/// </summary>
|
||||
public int? Limit { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the DTO options.
|
||||
/// </summary>
|
||||
public DtoOptions? DtoOptions { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the item IDs to exclude from results.
|
||||
/// </summary>
|
||||
public IReadOnlyList<Guid> ExcludeItemIds { get; set; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the artist IDs to exclude from results.
|
||||
/// </summary>
|
||||
public IReadOnlyList<Guid> ExcludeArtistIds { get; set; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user