using System.Text.Json.Serialization; namespace ProofOfConcept.Models; public sealed class TelemetryConfigRequest { [JsonPropertyName("vins")] public List Vins { get; set; } = new(); [JsonPropertyName("config")] public TelemetryConfig Config { get; set; } = new(); } public sealed class TelemetryConfig { [JsonPropertyName("hostname")] public string Hostname { get; set; } = string.Empty; [JsonPropertyName("port")] public int Port { get; set; } [JsonPropertyName("ca")] public string CertificateAuthority { get; set; } = string.Empty; [JsonPropertyName("fields")] public Dictionary Fields { get; set; } = new(); } public sealed class TelemetryFieldConfig { [JsonPropertyName("interval_seconds")] public int IntervalSeconds { get; set; } }