package com.xeiam.xchange.btcchina.dto.trade;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonProperty;

public class BTCChinaOrderDetail {

  private final long dateline;
  private final BigDecimal price;
  private final BigDecimal amount;

  public BTCChinaOrderDetail(@JsonProperty("dateline") long dateline, @JsonProperty("price") String price, @JsonProperty("amount") String amount) {

    this.dateline = dateline;
    this.price = new BigDecimal(price.replaceAll(",", ""));
    this.amount = new BigDecimal(amount.replaceAll(",", ""));
  }

  public long getDateline() {

    return dateline;
  }

  public BigDecimal getPrice() {

    return price;
  }

  public BigDecimal getAmount() {

    return amount;
  }

}

@@ -574,119 +574,426 @@
 %0A%0A  
-public long getDateline() %7B%0A%0A    return dateline;%0A  %7D%0A%0A  public BigDecimal getPrice() %7B%0A%0A    return price;%0A  %7D%0A
+/**%0A   * Returns the time of this trade.%0A   * %0A   * @return Unix time in seconds since 1 January 1970.%0A   */%0A  public long getDateline() %7B%0A%0A    return dateline;%0A  %7D%0A%0A  /**%0A   * Returns the price of this trade.%0A   * %0A   * @return Price for 1 BTC/LTC.%0A   */%0A  public BigDecimal getPrice() %7B%0A%0A    return price;%0A  %7D%0A%0A  /**%0A   * Returns the amount filled in this trade.%0A   * %0A   * @return Amount filled in this trade.%0A   */
 %0A  p

Add comment for BTCChinaOrderDetail.