using System.Collections.ObjectModel; using System.Text.Json.Serialization; namespace Jellyfin.Plugin.JRay.Models; /// What a server says it supports (server spec ยง9a). public class ServerCapabilities { /// Gets or sets the server's own identity. [JsonPropertyName("server_id")] public string? ServerId { get; set; } /// /// Gets the exchange envelope versions the server accepts. /// /// /// Checked once rather than discovered as a rejection per manifest across a /// whole library sweep. /// [JsonPropertyName("jmanifest_versions")] [JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)] public Collection JmanifestVersions { get; } = new(); }