View Javadoc
1   package org.oxerr.okcoin.rest.dto;
2   
3   import java.math.BigDecimal;
4   import java.time.Instant;
5   
6   import org.oxerr.okcoin.rest.dto.deserializer.EpochMilliDeserializer;
7   
8   import com.fasterxml.jackson.annotation.JsonProperty;
9   import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10  
11  public class AccountRecord extends BaseObject {
12  
13  	private static final long serialVersionUID = 2015060701L;
14  
15  	private final String addr;
16  	private final String account;
17  	private final BigDecimal amount;
18  	private final String bank;
19  	private final String benificiaryAddr;
20  	private final BigDecimal transactionValue;
21  	private final BigDecimal fee;
22  	private final Instant date;
23  
24  	public AccountRecord(
25  		@JsonProperty("addr") String addr,
26  		@JsonProperty("account") String account,
27  		@JsonProperty("amount") BigDecimal amount,
28  		@JsonProperty("bank") String bank,
29  		@JsonProperty("benificiary_addr") String benificiaryAddr,
30  		@JsonProperty("transaction_value") BigDecimal transactionValue,
31  		@JsonProperty("fee") BigDecimal fee,
32  		@JsonProperty("date")
33  		@JsonDeserialize(using = EpochMilliDeserializer.class)
34  		Instant date) {
35  		this.addr = addr;
36  		this.account = account;
37  		this.amount = amount;
38  		this.bank = bank;
39  		this.benificiaryAddr = benificiaryAddr;
40  		this.transactionValue = transactionValue;
41  		this.fee = fee;
42  		this.date = date;
43  	}
44  
45  	public String getAddr() {
46  		return addr;
47  	}
48  
49  	public String getAccount() {
50  		return account;
51  	}
52  
53  	public BigDecimal getAmount() {
54  		return amount;
55  	}
56  
57  	public String getBank() {
58  		return bank;
59  	}
60  
61  	public String getBenificiaryAddr() {
62  		return benificiaryAddr;
63  	}
64  
65  	public BigDecimal getTransactionValue() {
66  		return transactionValue;
67  	}
68  
69  	public BigDecimal getFee() {
70  		return fee;
71  	}
72  
73  	public Instant getDate() {
74  		return date;
75  	}
76  
77  }