aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/SimilarItemsQuery.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-05-15 10:00:53 +0200
committerGitHub <noreply@github.com>2026-05-15 10:00:53 +0200
commit8e602f982f79201cc316f64baf018a5a536d38f6 (patch)
tree94af198766ed00d736b31918b709e366f226845b /MediaBrowser.Controller/Library/SimilarItemsQuery.cs
parent097097300a473c7abe9d578169f60c39174345f1 (diff)
parent0b209fe66b33bfeed1b1259efba31ceb643c4e0e (diff)
Merge pull request #15970 from Shadowghost/similarity
Implement similarity providers
Diffstat (limited to 'MediaBrowser.Controller/Library/SimilarItemsQuery.cs')
-rw-r--r--MediaBrowser.Controller/Library/SimilarItemsQuery.cs37
1 files changed, 37 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/SimilarItemsQuery.cs b/MediaBrowser.Controller/Library/SimilarItemsQuery.cs
new file mode 100644
index 0000000000..1ed3ceec16
--- /dev/null
+++ b/MediaBrowser.Controller/Library/SimilarItemsQuery.cs
@@ -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; } = [];
+}