mirror of
https://github.com/MrSleeps/jellyfin-scene-search.git
synced 2026-11-14 22:11:27 +00:00
Add SceneSearchResponse.cs
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Jellyfin.Plugin.SceneSearch;
|
||||
|
||||
internal sealed class SceneSearchResponse
|
||||
{
|
||||
[JsonPropertyName("items")]
|
||||
public List<SceneSearchItem> Items { get; set; } = [];
|
||||
}
|
||||
|
||||
internal sealed class SceneSearchItem
|
||||
{
|
||||
[JsonPropertyName("jellyfin_item_id")]
|
||||
public string? JellyfinItemId { get; set; }
|
||||
|
||||
[JsonPropertyName("jellyfin_item_type")]
|
||||
public string? JellyfinItemType { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public string? Title { get; set; }
|
||||
|
||||
[JsonPropertyName("best_timestamp_ms")]
|
||||
public long BestTimestampMs { get; set; }
|
||||
|
||||
[JsonPropertyName("best_caption")]
|
||||
public string? BestCaption { get; set; }
|
||||
|
||||
[JsonPropertyName("ranking_score")]
|
||||
public double? RankingScore { get; set; }
|
||||
|
||||
[JsonPropertyName("siglip_score")]
|
||||
public double? SiglipScore { get; set; }
|
||||
|
||||
[JsonPropertyName("scene_matches")]
|
||||
public int SceneMatches { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user