-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEventoEscaladoViewModel.cs
42 lines (40 loc) · 1.25 KB
/
EventoEscaladoViewModel.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System.Text.Json.Serialization;
namespace JogadorAPI.ViewModels
{
public struct EventoEscaladoViewModel
{
public EventoEscaladoViewModel(
int IdEvento,
string Descricao,
string Cidade,
string Bairro,
DateTime Horario,
int DuracaoMinutos,
int Posicao,
int Custo,
string NomeUsuario)
{
ID_EVENTO = IdEvento;
DESCRICAO = Descricao;
CIDADE = Cidade;
BAIRRO = Bairro;
HORARIO = Horario;
DURACAO_MINUTOS = DuracaoMinutos;
POSICAO = Posicao;
CUSTO = Custo;
NOME_USUARIO = NomeUsuario;
}
[JsonPropertyName("id_evento")]
public int ID_EVENTO { get; set; }
public string DESCRICAO { get; set; }
public string CIDADE { get; set; }
public string BAIRRO { get; set; }
public DateTime HORARIO { get; set; }
[JsonPropertyName("duracao_minutos")]
public int DURACAO_MINUTOS { get; set; }
public int POSICAO { get; set; }
public int CUSTO { get; set; }
[JsonPropertyName("nome_usuario")]
public string NOME_USUARIO { get; set; }
}
}