View Javadoc
1   package org.oxerr.okcoin.rest.dto;
2   
3   import java.math.BigDecimal;
4   
5   import com.fasterxml.jackson.annotation.JsonProperty;
6   
7   public class BorrowsInfo extends ErrorResult {
8   
9   	private static final long serialVersionUID = 2015022001L;
10  
11  	private final BigDecimal borrowBtc;
12  	private final BigDecimal borrowLtc;
13  	private final BigDecimal borrowCny;
14  	private final BigDecimal canBorrow;
15  	private final BigDecimal interestBtc;
16  	private final BigDecimal interestLtc;
17  	private final BigDecimal interestCny;
18  	private final BigDecimal todayInterestBtc;
19  	private final BigDecimal todayInterestLtc;
20  	private final BigDecimal todayInterestCny;
21  
22  	public BorrowsInfo(
23  		@JsonProperty("borrow_btc") BigDecimal borrowBtc,
24  		@JsonProperty("borrow_ltc") BigDecimal borrowLtc,
25  		@JsonProperty("borrow_cny") BigDecimal borrowCny,
26  		@JsonProperty("can_borrow") BigDecimal canBorrow,
27  		@JsonProperty("interest_btc") BigDecimal interestBtc,
28  		@JsonProperty("interest_ltc") BigDecimal interestLtc,
29  		@JsonProperty("interest_cny") BigDecimal interestCny,
30  		@JsonProperty("result") boolean result,
31  		@JsonProperty("today_interest_btc") BigDecimal todayInterestBtc,
32  		@JsonProperty("today_interest_ltc") BigDecimal todayInterestLtc,
33  		@JsonProperty("today_interest_cny") BigDecimal todayInterestCny) {
34  		super(result);
35  		this.borrowBtc = borrowBtc;
36  		this.borrowLtc = borrowLtc;
37  		this.borrowCny = borrowCny;
38  		this.canBorrow = canBorrow;
39  		this.interestBtc = interestBtc;
40  		this.interestLtc = interestLtc;
41  		this.interestCny = interestCny;
42  		this.todayInterestBtc = todayInterestBtc;
43  		this.todayInterestLtc = todayInterestLtc;
44  		this.todayInterestCny = todayInterestCny;
45  	}
46  
47  	public BigDecimal getBorrowBtc() {
48  		return borrowBtc;
49  	}
50  
51  	public BigDecimal getBorrowLtc() {
52  		return borrowLtc;
53  	}
54  
55  	public BigDecimal getBorrowCny() {
56  		return borrowCny;
57  	}
58  
59  	public BigDecimal getCanBorrow() {
60  		return canBorrow;
61  	}
62  
63  	public BigDecimal getInterestBtc() {
64  		return interestBtc;
65  	}
66  
67  	public BigDecimal getInterestLtc() {
68  		return interestLtc;
69  	}
70  
71  	public BigDecimal getInterestCny() {
72  		return interestCny;
73  	}
74  
75  	public BigDecimal getTodayInterestBtc() {
76  		return todayInterestBtc;
77  	}
78  
79  	public BigDecimal getTodayInterestLtc() {
80  		return todayInterestLtc;
81  	}
82  
83  	public BigDecimal getTodayInterestCny() {
84  		return todayInterestCny;
85  	}
86  
87  }