using System; using System.Text.Json.Serialization; namespace Jellyfin.Plugin.SRFPlay.Api.Models; /// /// Represents an episode in the SRF API response. /// public class Episode { /// /// Gets or sets the unique identifier. /// [JsonPropertyName("id")] public string Id { get; set; } = string.Empty; /// /// Gets or sets the URN. /// [JsonPropertyName("urn")] public string? Urn { get; set; } /// /// Gets or sets the title. /// [JsonPropertyName("title")] public string Title { get; set; } = string.Empty; /// /// Gets or sets the lead/description. /// [JsonPropertyName("lead")] public string? Lead { get; set; } /// /// Gets or sets the description. /// [JsonPropertyName("description")] public string? Description { get; set; } /// /// Gets or sets the image URL. /// [JsonPropertyName("imageUrl")] public string? ImageUrl { get; set; } /// /// Gets or sets the episode number. /// [JsonPropertyName("episodeNumber")] public int? EpisodeNumber { get; set; } /// /// Gets or sets the season number. /// [JsonPropertyName("seasonNumber")] public int? SeasonNumber { get; set; } /// /// Gets or sets the publication date. /// [JsonPropertyName("publishedDate")] public DateTime? PublishedDate { get; set; } }