Duncan Tourolle ac6a3842dd
Some checks failed
🏗️ Build Plugin / call (push) Failing after 0s
📝 Create/Update Release Draft & Release Bump PR / call (push) Failing after 0s
🧪 Test Plugin / call (push) Failing after 0s
🔬 Run CodeQL / call (push) Failing after 0s
first commit
2025-11-12 22:05:36 +01:00

52 lines
1.3 KiB
C#

using System.Text.Json.Serialization;
namespace Jellyfin.Plugin.SRFPlay.Api.Models;
/// <summary>
/// Represents a streaming resource (URL) in the SRF API response.
/// </summary>
public class Resource
{
/// <summary>
/// Gets or sets the stream URL.
/// </summary>
[JsonPropertyName("url")]
public string Url { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the streaming protocol (e.g., HLS, DASH).
/// </summary>
[JsonPropertyName("protocol")]
public string? Protocol { get; set; }
/// <summary>
/// Gets or sets the quality level (e.g., HD, SD).
/// </summary>
[JsonPropertyName("quality")]
public string? Quality { get; set; }
/// <summary>
/// Gets or sets the streaming method.
/// </summary>
[JsonPropertyName("streaming")]
public string? Streaming { get; set; }
/// <summary>
/// Gets or sets the MIME type.
/// </summary>
[JsonPropertyName("mimeType")]
public string? MimeType { get; set; }
/// <summary>
/// Gets or sets the encoding.
/// </summary>
[JsonPropertyName("encoding")]
public string? Encoding { get; set; }
/// <summary>
/// Gets or sets whether DRM is required.
/// </summary>
[JsonPropertyName("drmList")]
public object? DrmList { get; set; }
}