Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 778 | blopes | 1 | package br.com.kronus.web; |
| 2 | |||
| 3 | import java.time.LocalDateTime; |
||
| 4 | |||
| 5 | public class TradeDTO { |
||
| 6 | |||
| 7 | private LocalDateTime dataHora; |
||
| 8 | private String ativo; |
||
| 9 | private String direcao; |
||
| 10 | private int quantidade; |
||
| 11 | private double precoEntrada; |
||
| 12 | private double precoSaida; |
||
| 13 | private double pl; |
||
| 14 | |||
| 15 | public TradeDTO(LocalDateTime dataHora, String ativo, String direcao, |
||
| 16 | int quantidade, double precoEntrada, double precoSaida, double pl) { |
||
| 17 | this.dataHora = dataHora; |
||
| 18 | this.ativo = ativo; |
||
| 19 | this.direcao = direcao; |
||
| 20 | this.quantidade = quantidade; |
||
| 21 | this.precoEntrada = precoEntrada; |
||
| 22 | this.precoSaida = precoSaida; |
||
| 23 | this.pl = pl; |
||
| 24 | } |
||
| 25 | |||
| 26 | public LocalDateTime getDataHora() { |
||
| 27 | return dataHora; |
||
| 28 | } |
||
| 29 | |||
| 30 | public void setDataHora(LocalDateTime dataHora) { |
||
| 31 | this.dataHora = dataHora; |
||
| 32 | } |
||
| 33 | |||
| 34 | public String getAtivo() { |
||
| 35 | return ativo; |
||
| 36 | } |
||
| 37 | |||
| 38 | public void setAtivo(String ativo) { |
||
| 39 | this.ativo = ativo; |
||
| 40 | } |
||
| 41 | |||
| 42 | public String getDirecao() { |
||
| 43 | return direcao; |
||
| 44 | } |
||
| 45 | |||
| 46 | public void setDirecao(String direcao) { |
||
| 47 | this.direcao = direcao; |
||
| 48 | } |
||
| 49 | |||
| 50 | public int getQuantidade() { |
||
| 51 | return quantidade; |
||
| 52 | } |
||
| 53 | |||
| 54 | public void setQuantidade(int quantidade) { |
||
| 55 | this.quantidade = quantidade; |
||
| 56 | } |
||
| 57 | |||
| 58 | public double getPrecoEntrada() { |
||
| 59 | return precoEntrada; |
||
| 60 | } |
||
| 61 | |||
| 62 | public void setPrecoEntrada(double precoEntrada) { |
||
| 63 | this.precoEntrada = precoEntrada; |
||
| 64 | } |
||
| 65 | |||
| 66 | public double getPrecoSaida() { |
||
| 67 | return precoSaida; |
||
| 68 | } |
||
| 69 | |||
| 70 | public void setPrecoSaida(double precoSaida) { |
||
| 71 | this.precoSaida = precoSaida; |
||
| 72 | } |
||
| 73 | |||
| 74 | public double getPl() { |
||
| 75 | return pl; |
||
| 76 | } |
||
| 77 | |||
| 78 | public void setPl(double pl) { |
||
| 79 | this.pl = pl; |
||
| 80 | } |
||
| 81 | } |