View Javadoc
1   package org.oxerr.peatio.rest.dto;
2   
3   import java.math.BigDecimal;
4   
5   import com.fasterxml.jackson.annotation.JsonProperty;
6   
7   public class Account extends BaseObject {
8   
9   	private final String currency;
10  	private final BigDecimal balance;
11  	private final BigDecimal locked;
12  
13  	/**
14  	 *
15  	 * @param currency account type, like 'btc' or 'cny'.
16  	 * @param balance account balance, exclude locked funds.
17  	 * @param locked locked funds.
18  	 */
19  	public Account(
20  			@JsonProperty("currency") String currency,
21  			@JsonProperty("balance") BigDecimal balance,
22  			@JsonProperty("locked") BigDecimal locked) {
23  		this.currency = currency;
24  		this.balance = balance;
25  		this.locked = locked;
26  	}
27  
28  	public String getCurrency() {
29  		return currency;
30  	}
31  
32  	public BigDecimal getBalance() {
33  		return balance;
34  	}
35  
36  	public BigDecimal getLocked() {
37  		return locked;
38  	}
39  
40  }