using System.Windows.Media; using Azaion.Common.DTO; using Newtonsoft.Json; namespace Azaion.Annotator.DTO; public class AnnotationResult { [JsonProperty(PropertyName = "f")] public string Image { get; set; } = null!; [JsonProperty(PropertyName = "t")] public TimeSpan Time { get; set; } public double Lat { get; set; } public double Lon { get; set; } public List Detections { get; set; } = new(); #region For XAML Form [JsonIgnore] public string TimeStr => $"{Time:h\\:mm\\:ss}"; [JsonIgnore] public string ClassName { get; set; } = null!; [JsonIgnore] public Color ClassColor0 { get; set; } [JsonIgnore] public Color ClassColor1 { get; set; } [JsonIgnore] public Color ClassColor2 { get; set; } [JsonIgnore] public Color ClassColor3 { get; set; } #endregion }