Fix fecha totalizados nivel provincia
This commit is contained in:
@@ -3,17 +3,25 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Elecciones.Core.DTOs;
|
||||
|
||||
// DTO para la respuesta del endpoint /resultados/getResumen
|
||||
public class ResumenDto
|
||||
{
|
||||
[JsonPropertyName("fechaTotalizacion")]
|
||||
public string FechaTotalizacion { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("estadoRecuento")]
|
||||
public EstadoRecuentoDto EstadoRecuento { get; set; } = new();
|
||||
|
||||
[JsonPropertyName("valoresTotalizadosPositivos")]
|
||||
public List<ResumenPositivoDto> ValoresTotalizadosPositivos { get; set; } = [];
|
||||
public List<ResumenVotosPositivosDto> ValoresTotalizadosPositivos { get; set; } = [];
|
||||
}
|
||||
|
||||
public class ResumenPositivoDto
|
||||
// DTO específico para los objetos dentro de la lista "valoresTotalizadosPositivos" de /getResumen
|
||||
public class ResumenVotosPositivosDto
|
||||
{
|
||||
[JsonPropertyName("idAgrupacion")]
|
||||
public string IdAgrupacion { get; set; } = null!;
|
||||
|
||||
public string IdAgrupacion { get; set; } = string.Empty;
|
||||
|
||||
[JsonPropertyName("votos")]
|
||||
public long Votos { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user