aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-05-27 20:59:18 +0200
committerGitHub <noreply@github.com>2026-05-27 20:59:18 +0200
commit2f17516d4bd8700e4a66f609b9c5fac835020407 (patch)
treeb26176e8adf7f6d56cd5a002fdc37b63800cf71a /MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs
parentcbd0c5b8417e42f072007194d204ff711b11ff1a (diff)
parent5ed3ffdb42cde2ddb45d0ca55d84d885d877d2a9 (diff)
Merge pull request #16856 from Shadowghost/movie-recommendations
Fix movie recommendations
Diffstat (limited to 'MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs')
-rw-r--r--MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs32
1 files changed, 32 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs b/MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs
new file mode 100644
index 0000000000..71346fcadf
--- /dev/null
+++ b/MediaBrowser.Controller/Library/SimilarItemsRecommendation.cs
@@ -0,0 +1,32 @@
+using System;
+using System.Collections.Generic;
+using MediaBrowser.Controller.Entities;
+using MediaBrowser.Model.Dto;
+
+namespace MediaBrowser.Controller.Library;
+
+/// <summary>
+/// A recommendation category derived from a baseline item, holding similar items prior to DTO conversion.
+/// </summary>
+public sealed class SimilarItemsRecommendation
+{
+ /// <summary>
+ /// Gets the display name of the baseline item the recommendation is based on.
+ /// </summary>
+ public required string BaselineItemName { get; init; }
+
+ /// <summary>
+ /// Gets an identifier for the recommendation category.
+ /// </summary>
+ public required Guid CategoryId { get; init; }
+
+ /// <summary>
+ /// Gets the recommendation type.
+ /// </summary>
+ public required RecommendationType RecommendationType { get; init; }
+
+ /// <summary>
+ /// Gets the similar items for the baseline, ordered by relevance.
+ /// </summary>
+ public required IReadOnlyList<BaseItem> Items { get; init; }
+}