1 package org.oxerr.huobi.rest.dto.marketdata; 2 3 import java.math.BigDecimal; 4 5 import com.fasterxml.jackson.annotation.JsonProperty; 6 7 public class TopObject { 8 9 private final BigDecimal price; 10 private final BigDecimal level; 11 private final BigDecimal amount; 12 private final BigDecimal accu; 13 14 public TopObject( 15 @JsonProperty("price") final BigDecimal price, 16 @JsonProperty("level") final BigDecimal level, 17 @JsonProperty("amount") final BigDecimal amount, 18 @JsonProperty("accu") final BigDecimal accu) { 19 this.price = price; 20 this.level = level; 21 this.amount = amount; 22 this.accu = accu; 23 } 24 25 public BigDecimal getPrice() { 26 return price; 27 } 28 29 public BigDecimal getLevel() { 30 return level; 31 } 32 33 public BigDecimal getAmount() { 34 return amount; 35 } 36 37 public BigDecimal getAccu() { 38 return accu; 39 } 40 41 }