View Javadoc
1   package org.oxerr.peatio.rest.dto;
2   
3   import java.math.BigDecimal;
4   import java.util.Date;
5   
6   import com.fasterxml.jackson.annotation.JsonProperty;
7   import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
8   
9   public class Depth extends BaseObject {
10  
11  	private final Date timestamp;
12  	private final BigDecimal[][] asks;
13  	private final BigDecimal[][] bids;
14  
15  	public Depth(
16  			@JsonProperty("timestamp")
17  			@JsonDeserialize(using = UnixTimestampDeserializer.class) Date timestamp,
18  			@JsonProperty("asks") BigDecimal[][] asks,
19  			@JsonProperty("bids") BigDecimal[][] bids) {
20  		this.timestamp = timestamp;
21  		this.asks = asks;
22  		this.bids = bids;
23  	}
24  
25  	public Date getTimestamp() {
26  		return timestamp;
27  	}
28  
29  	public BigDecimal[][] getAsks() {
30  		return asks;
31  	}
32  
33  	public BigDecimal[][] getBids() {
34  		return bids;
35  	}
36  
37  }