Test Docker
This commit is contained in:
20
Elecciones-Web/src/Elecciones.Core/DTOs/BancaDto.cs
Normal file
20
Elecciones-Web/src/Elecciones.Core/DTOs/BancaDto.cs
Normal 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; } = [];
|
||||
}
|
||||
}
|
||||
15
Elecciones-Web/src/Elecciones.Core/DTOs/CategoriaDto.cs
Normal file
15
Elecciones-Web/src/Elecciones.Core/DTOs/CategoriaDto.cs
Normal 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!;
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
@@ -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 { }
|
||||
22
Elecciones-Web/src/Elecciones.Core/DTOs/ResumenDto.cs
Normal file
22
Elecciones-Web/src/Elecciones.Core/DTOs/ResumenDto.cs
Normal 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; }
|
||||
}
|
||||
19
Elecciones-Web/src/Elecciones.Core/DTOs/TelegramaFileDto.cs
Normal file
19
Elecciones-Web/src/Elecciones.Core/DTOs/TelegramaFileDto.cs
Normal 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!;
|
||||
}
|
||||
Reference in New Issue
Block a user