using System.Text.Json.Serialization; namespace SPMS.Application.DTOs.Stats; public class DeviceStatResponseDto { [JsonPropertyName("total")] public int Total { get; set; } [JsonPropertyName("by_platform")] public List ByPlatform { get; set; } = []; [JsonPropertyName("by_push_agreed")] public List ByPushAgreed { get; set; } = []; [JsonPropertyName("by_tag")] public List ByTag { get; set; } = []; } public class PlatformStatDto { [JsonPropertyName("platform")] public string Platform { get; set; } = string.Empty; [JsonPropertyName("count")] public int Count { get; set; } [JsonPropertyName("ratio")] public double Ratio { get; set; } } public class PushAgreedStatDto { [JsonPropertyName("agreed")] public bool Agreed { get; set; } [JsonPropertyName("count")] public int Count { get; set; } [JsonPropertyName("ratio")] public double Ratio { get; set; } } public class TagStatDto { [JsonPropertyName("tag_index")] public int TagIndex { get; set; } [JsonPropertyName("tag_name")] public string TagName { get; set; } = string.Empty; [JsonPropertyName("count")] public int Count { get; set; } }