using System.Text.Json.Serialization; namespace SPMS.Application.DTOs.Stats; public class SummaryStatResponseDto { [JsonPropertyName("total_devices")] public int TotalDevices { get; set; } [JsonPropertyName("active_devices")] public int ActiveDevices { get; set; } [JsonPropertyName("total_messages")] public int TotalMessages { get; set; } [JsonPropertyName("total_send")] public long TotalSend { get; set; } [JsonPropertyName("total_success")] public long TotalSuccess { get; set; } [JsonPropertyName("total_open")] public long TotalOpen { get; set; } [JsonPropertyName("avg_ctr")] public double AvgCtr { get; set; } [JsonPropertyName("today")] public PeriodStatDto Today { get; set; } = new(); [JsonPropertyName("this_month")] public PeriodStatDto ThisMonth { get; set; } = new(); } public class PeriodStatDto { [JsonPropertyName("send_count")] public int SendCount { get; set; } [JsonPropertyName("success_count")] public int SuccessCount { get; set; } [JsonPropertyName("open_count")] public int OpenCount { get; set; } [JsonPropertyName("ctr")] public double Ctr { get; set; } }