using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;

namespace Jellyfin.Plugin.SRFPlay.Api.Models;

/// <summary>
/// Represents a direct data response (for shows list).
/// </summary>
/// <typeparam name="T">The type of data items.</typeparam>
public class PlayV3DirectResponse<T>
{
    /// <summary>
    /// Gets or sets the list of data items.
    /// </summary>
    [JsonPropertyName("data")]
    [SuppressMessage("Usage", "CA2227:Collection properties should be read only", Justification = "Required for JSON deserialization")]
    [SuppressMessage("Design", "CA1002:Do not expose generic lists", Justification = "DTO for JSON deserialization")]
    public List<T>? Data { get; set; }
}
