Test Docker

This commit is contained in:
2025-08-15 17:31:51 -03:00
parent 39b1e97072
commit bce5b1dcec
97 changed files with 8493 additions and 216 deletions

View File

@@ -0,0 +1,20 @@
// src/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("nroBancas")]
public int NroBancas { get; set; }
public class RepartoBancasDto
{
[JsonPropertyName("repartoBancas")]
public List<BancaDto> RepartoBancas { get; set; } = [];
}
}

View File

@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
public class CategoriaDto
{
[JsonPropertyName("orden")]
public int Orden { get; set; }
[JsonPropertyName("categoriald")]
public int CategoriaId { get; set; }
[JsonPropertyName("nombre")]
public string Nombre { get; set; } = null!;
}

View File

@@ -1,4 +1,3 @@
// src/Elecciones.Core/DTOs/EstadoRecuentoDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
@@ -11,8 +10,14 @@ public class EstadoRecuentoDto
[JsonPropertyName("mesasTotalizadas")]
public int MesasTotalizadas { get; set; }
[JsonPropertyName("mesasTotalizadasPorcentaje")]
public decimal MesasTotalizadasPorcentaje { get; set; }
[JsonPropertyName("cantidadElectores")]
public int CantidadElectores { get; set; }
[JsonPropertyName("cantidadVotantes")]
public int CantidadVotantes { get; set; }
[JsonPropertyName("participacionPorcentaje")]
public decimal ParticipacionPorcentaje { get; set; }

View File

@@ -0,0 +1,8 @@
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
// Reutilizamos el DTO de estado de recuento que ya teníamos,
// pero le damos un alias para claridad si es necesario.
// A nivel de estructura son idénticos.
public class EstadoRecuentoGeneralDto : EstadoRecuentoDto { }

View File

@@ -0,0 +1,22 @@
using System.Text.Json.Serialization;
using System.Collections.Generic;
namespace Elecciones.Core.DTOs;
public class ResumenDto
{
[JsonPropertyName("valoresTotalizadosPositivos")]
public List<ResumenPositivoDto> ValoresTotalizadosPositivos { get; set; } = [];
}
public class ResumenPositivoDto
{
[JsonPropertyName("idAgrupacion")]
public string IdAgrupacion { get; set; } = null!;
[JsonPropertyName("votos")]
public long Votos { get; set; }
[JsonPropertyName("votosPorcentaje")]
public decimal VotosPorcentaje { get; set; }
}

View File

@@ -0,0 +1,19 @@
// src/Elecciones.Core/DTOs/TelegramaFileDto.cs
using System.Text.Json.Serialization;
namespace Elecciones.Core.DTOs;
public class TelegramaFileDto
{
[JsonPropertyName("nombreArchivo")]
public string NombreArchivo { get; set; } = null!;
[JsonPropertyName("imagen")]
public string Imagen { get; set; } = null!;
[JsonPropertyName("fechaEscaneo")]
public string FechaEscaneo { get; set; } = null!;
[JsonPropertyName("fechaTotalizacion")]
public string FechaTotalizacion { get; set; } = null!;
}