Fix Campos añadidos

This commit is contained in:
2025-08-16 13:05:44 -03:00
parent 69ddf2b2d2
commit 931d0f4e91
19 changed files with 546 additions and 79 deletions

View File

@@ -1,20 +1,27 @@
// src/Elecciones.Core/DTOs/BancaDto.cs
// Archivo: Elecciones.Core/DTOs/BancaDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
public class BancaDto
{
[JsonPropertyName("idAgrupacion")]
public string IdAgrupacion { get; set; } = null!;
[JsonPropertyName("nombreAgrupacion")]
public string NombreAgrupacion { get; set; } = null!;
[JsonPropertyName("idAgrupacion")]
public string IdAgrupacion { get; set; } = null!;
[JsonPropertyName("nombreAgrupacion")]
public string NombreAgrupacion { get; set; } = null!;
[JsonPropertyName("nroBancas")]
public int NroBancas { get; set; }
[JsonPropertyName("idAgrupacionTelegrama")]
public string? IdAgrupacionTelegrama { get; set; }
public class RepartoBancasDto
{
[JsonPropertyName("nroBancas")]
public int NroBancas { get; set; }
}
public class RepartoBancasDto
{
[JsonPropertyName("fechaTotalizacion")]
public string? FechaTotalizacion { get; set; }
[JsonPropertyName("repartoBancas")]
public List<BancaDto> RepartoBancas { get; set; } = [];
}
}

View File

@@ -1,4 +1,3 @@
// src/Elecciones.Core/DTOs/CodigoAmbitoDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
@@ -8,7 +7,6 @@ public class CodigoAmbitoDto
[JsonPropertyName("distritoId")]
public string DistritoId { get; set; } = null!;
// Hacemos que los demás IDs acepten nulos para ser más flexibles
[JsonPropertyName("seccionProvincialId")]
public string? SeccionProvincialId { get; set; }
@@ -17,4 +15,13 @@ public class CodigoAmbitoDto
[JsonPropertyName("municipioId")]
public string? MunicipioId { get; set; }
[JsonPropertyName("circuitoId")]
public string? CircuitoId { get; set; }
[JsonPropertyName("establecimientoId")]
public string? EstablecimientoId { get; set; }
[JsonPropertyName("mesaId")]
public string? MesaId { get; set; }
}

View File

@@ -1,4 +1,4 @@
// src/Elecciones.Core/DTOs/VotosOtrosDto.cs
// Archivo: Elecciones.Core/DTOs/VotosOtrosDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
@@ -7,10 +7,19 @@ public class VotosOtrosDto
{
[JsonPropertyName("votosNulos")]
public long VotosNulos { get; set; }
[JsonPropertyName("votosNulosPorcentaje")]
public decimal VotosNulosPorcentaje { get; set; }
[JsonPropertyName("votosEnBlanco")]
public long VotosEnBlanco { get; set; }
[JsonPropertyName("votosEnBlancoPorcentaje")]
public decimal VotosEnBlancoPorcentaje { get; set; }
[JsonPropertyName("votosRecurridosComandoImpugnados")]
public long VotosRecurridos { get; set; }
[JsonPropertyName("votosRecurridosComandoImpugnadosPorcentaje")]
public decimal VotosRecurridosPorcentaje { get; set; }
}

View File

@@ -1,4 +1,4 @@
// src/Elecciones.Core/DTOs/VotosPositivosDto.cs
// Archivo: Elecciones.Core/DTOs/VotosPositivosDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
@@ -10,7 +10,13 @@ public class VotosPositivosDto
[JsonPropertyName("nombreAgrupacion")]
public string NombreAgrupacion { get; set; } = null!;
[JsonPropertyName("idAgrupacionTelegrama")]
public string? IdAgrupacionTelegrama { get; set; }
[JsonPropertyName("votos")]
public long Votos { get; set; }
[JsonPropertyName("votosPorcentaje")]
public decimal VotosPorcentaje { get; set; }
}