init
This commit is contained in:
24
OpenCand.Core/Models/BemCandidato.cs
Normal file
24
OpenCand.Core/Models/BemCandidato.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
namespace OpenCand.Core.Models
|
||||
{
|
||||
public class BemCandidato
|
||||
{
|
||||
public Guid IdCandidato { get; set; }
|
||||
|
||||
// Only for fetching purposes
|
||||
public string? SqCandidato { get; set; }
|
||||
|
||||
public int Ano { get; set; }
|
||||
|
||||
public string SiglaUF { get; set; }
|
||||
|
||||
public string NomeUE { get; set; }
|
||||
|
||||
public int OrdemBem { get; set; }
|
||||
|
||||
public string? TipoBem { get; set; }
|
||||
|
||||
public string? Descricao { get; set; }
|
||||
|
||||
public decimal? Valor { get; set; }
|
||||
}
|
||||
}
|
56
OpenCand.Core/Models/Candidato.cs
Normal file
56
OpenCand.Core/Models/Candidato.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
namespace OpenCand.Core.Models
|
||||
{
|
||||
public class Candidato
|
||||
{
|
||||
public Guid IdCandidato { get; set; }
|
||||
|
||||
public string Cpf { get; set; }
|
||||
|
||||
public string SqCandidato { get; set; }
|
||||
|
||||
public string Nome { get; set; }
|
||||
|
||||
public DateTime? DataNascimento { get; set; }
|
||||
|
||||
public string Email { get; set; }
|
||||
|
||||
public string Sexo { get; set; }
|
||||
|
||||
public string EstadoCivil { get; set; }
|
||||
|
||||
public string Escolaridade { get; set; }
|
||||
|
||||
public string Ocupacao { get; set; }
|
||||
|
||||
public List<CandidatoMapping> Eleicoes { get; set; }
|
||||
|
||||
// API ONLY
|
||||
public string FotoUrl { get; set; }
|
||||
}
|
||||
|
||||
public class CandidatoMapping
|
||||
{
|
||||
public Guid IdCandidato { get; set; }
|
||||
public string Cpf { get; set; }
|
||||
public string Nome { get; set; }
|
||||
public string SqCandidato { get; set; }
|
||||
public int Ano { get; set; }
|
||||
public string TipoEleicao { get; set; }
|
||||
public string SiglaUF { get; set; }
|
||||
public string NomeUE { get; set; }
|
||||
public string Cargo { get; set; }
|
||||
public string NrCandidato { get; set; }
|
||||
public string Resultado { get; set; }
|
||||
}
|
||||
|
||||
public class RedeSocial
|
||||
{
|
||||
public Guid IdCandidato { get; set; }
|
||||
public string SqCandidato { get; set; }
|
||||
|
||||
public string Rede { get; set; }
|
||||
public string SiglaUF { get; set; }
|
||||
public int Ano { get; set; }
|
||||
public string Link { get; set; }
|
||||
}
|
||||
}
|
11
OpenCand.Core/Models/OpenCandStats.cs
Normal file
11
OpenCand.Core/Models/OpenCandStats.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace OpenCand.Core.Models
|
||||
{
|
||||
public class OpenCandStats
|
||||
{
|
||||
public long TotalCandidatos { get; set; }
|
||||
public long TotalBemCandidatos { get; set; }
|
||||
public long TotalValorBemCandidatos { get; set; }
|
||||
public long TotalRedesSociais { get; set; }
|
||||
public long TotalEleicoes { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user