42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using System.Collections.ObjectModel;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Jellyfin.Plugin.JRay.Models;
|
|
|
|
/// <summary>
|
|
/// One actor entry in a <see cref="TruthFile"/>, with the time windows during
|
|
/// which they are visible on screen.
|
|
/// </summary>
|
|
public class TruthActor
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the actor's display name.
|
|
/// </summary>
|
|
[JsonPropertyName("name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the actor's IMDB person id (e.g. "nm0000158"), or "" if unresolved.
|
|
/// </summary>
|
|
[JsonPropertyName("imdb_id")]
|
|
public string ImdbId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the actor's TMDB person id, or "" if unresolved.
|
|
/// </summary>
|
|
[JsonPropertyName("tmdb_id")]
|
|
public string TmdbId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the actor's Jellyfin Person item GUID, or "" if unresolved.
|
|
/// </summary>
|
|
[JsonPropertyName("jellyfin_id")]
|
|
public string JellyfinId { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets the list of [start_sec, end_sec] windows during which the actor is on screen.
|
|
/// </summary>
|
|
[JsonPropertyName("scenes")]
|
|
public Collection<double[]> Scenes { get; } = new();
|
|
}
|