package com.yami.trading.huobi.tradingview.api.model;
|
|
import java.util.Date;
|
|
public class TickerData {
|
private String proName;
|
private String shortName;
|
private String exchange;
|
private String description;
|
private String type;
|
private Double lastPrice;
|
private Double change;
|
private Double changePercent;
|
private Long volume;
|
private Date lastUpdated;
|
|
private Double open;
|
|
private Double high;
|
|
private Double low;
|
|
private Double prevClose;
|
|
public Double getPrevClose() {
|
return prevClose;
|
}
|
|
public void setPrevClose(Double prevClose) {
|
this.prevClose = prevClose;
|
}
|
|
public Double getOpen() {
|
return open;
|
}
|
|
public void setOpen(Double open) {
|
this.open = open;
|
}
|
|
public Double getHigh() {
|
return high;
|
}
|
|
public void setHigh(Double high) {
|
this.high = high;
|
}
|
|
public Double getLow() {
|
return low;
|
}
|
|
public void setLow(Double low) {
|
this.low = low;
|
}
|
|
|
public String getProName() {
|
return proName;
|
}
|
|
public void setProName(String proName) {
|
this.proName = proName;
|
}
|
|
public String getShortName() {
|
return shortName;
|
}
|
|
public void setShortName(String shortName) {
|
this.shortName = shortName;
|
}
|
|
public String getExchange() {
|
return exchange;
|
}
|
|
public void setExchange(String exchange) {
|
this.exchange = exchange;
|
}
|
|
public String getDescription() {
|
return description;
|
}
|
|
public void setDescription(String description) {
|
this.description = description;
|
}
|
|
public String getType() {
|
return type;
|
}
|
|
public void setType(String type) {
|
this.type = type;
|
}
|
|
public Double getLastPrice() {
|
return lastPrice;
|
}
|
|
public void setLastPrice(Double lastPrice) {
|
this.lastPrice = lastPrice;
|
}
|
|
public Double getChange() {
|
return change;
|
}
|
|
public void setChange(Double change) {
|
this.change = change;
|
}
|
|
public Double getChangePercent() {
|
return changePercent;
|
}
|
|
public void setChangePercent(Double changePercent) {
|
this.changePercent = changePercent;
|
}
|
|
public Long getVolume() {
|
return volume;
|
}
|
|
public void setVolume(Long volume) {
|
this.volume = volume;
|
}
|
|
public Date getLastUpdated() {
|
return lastUpdated;
|
}
|
|
public void setLastUpdated(Date lastUpdated) {
|
this.lastUpdated = lastUpdated;
|
}
|
|
public TickerData merge(TickerData patch) {
|
if (patch.proName != null)
|
this.proName = patch.proName;
|
if (patch.shortName != null)
|
this.shortName = patch.shortName;
|
if (patch.exchange != null)
|
this.exchange = patch.exchange;
|
if (patch.description != null)
|
this.description = patch.description;
|
if (patch.type != null)
|
this.type = patch.type;
|
if (patch.lastPrice != null)
|
this.lastPrice = patch.lastPrice;
|
if (patch.change != null)
|
this.change = patch.change;
|
if (patch.changePercent != null)
|
this.changePercent = patch.changePercent;
|
if (patch.volume != null)
|
this.volume = patch.volume;
|
if (patch.lastUpdated != null)
|
this.lastUpdated = patch.lastUpdated;
|
if (patch.open != null)
|
this.open = patch.open;
|
if (patch.high != null)
|
this.high = patch.high;
|
if (patch.low != null)
|
this.low = patch.low;
|
if (patch.prevClose != null)
|
this.prevClose = patch.prevClose;
|
return this;
|
}
|
}
|