52 lines
1.3 KiB
C#
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; }
|
|
}
|