using System.Collections.Generic; using System.Text.Json.Serialization; namespace FATrace.OEMApp.Model.Jellyfin { /// /// Jellyfin /Items 接口响应模型 /// public sealed class JellyfinItemsResponse { /// /// 返回的项目集合 /// [JsonPropertyName("Items")] public List Items { get; set; } = new(); /// /// 记录总数 /// [JsonPropertyName("TotalRecordCount")] public int TotalRecordCount { get; set; } /// /// 起始索引 /// [JsonPropertyName("StartIndex")] public int StartIndex { get; set; } } /// /// Jellyfin 媒体条目最小字段模型 /// public sealed class JellyfinItem { /// /// 名称 /// [JsonPropertyName("Name")] public string? Name { get; set; } /// /// 服务器 ID /// [JsonPropertyName("ServerId")] public string? ServerId { get; set; } /// /// 项目 ID /// [JsonPropertyName("Id")] public string? Id { get; set; } /// /// 频道 ID(可能为 null) /// [JsonPropertyName("ChannelId")] public string? ChannelId { get; set; } /// /// 类型,如 Movie、Series /// [JsonPropertyName("Type")] public string? Type { get; set; } } }