using System.Text.Json.Serialization; namespace Jellyfin.Plugin.SRFPlay.Api.Models; /// /// Where recordings will be written and whether the server can write there. /// public class RecordingOutputInfo { /// /// Gets or sets the resolved output directory. /// [JsonPropertyName("path")] public string Path { get; set; } = string.Empty; /// /// Gets or sets how the directory was chosen: "custom", "library", "tvLibrary" or "fallback". /// [JsonPropertyName("source")] public string Source { get; set; } = string.Empty; /// /// Gets or sets the name of the library the directory belongs to, if any. /// [JsonPropertyName("libraryName")] public string? LibraryName { get; set; } /// /// Gets or sets a value indicating whether the directory could be created and written to. /// [JsonPropertyName("writable")] public bool Writable { get; set; } /// /// Gets or sets the error from the write test, if it failed. /// [JsonPropertyName("error")] public string? Error { get; set; } }