/**
 * Copyright (C) 2012 - 2014 Xeiam LLC http://xeiam.com
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of
 * this software and associated documentation files (the "Software"), to deal in
 * the Software without restriction, including without limitation the rights to
 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is furnished to do
 * so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.xeiam.xchange.cexio.dto.account;

import java.text.MessageFormat;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Author: brox
 * Since: 2/7/14
 */
public class CexIOBalanceInfo {

  private final String error;
  private final long timestamp;
  private final String username;
  private final CexIOBalance balanceBTC;
  private final CexIOBalance balanceNMC;
  private final CexIOBalance balanceIXC;
  private final CexIOBalance balanceDVC;
  private final CexIOBalance balanceGHS;

  /**
   * Constructor
   * 
   * @param error
   * @param timestamp The server time (Unix time)
   * @param username
   * @param balanceBTC
   * @param balanceNMC
   * @param balanceIXC
   * @param balanceDVC
   * @param balanceGHS
   */
  public CexIOBalanceInfo(@JsonProperty("error") String error, @JsonProperty("timestamp") long timestamp, @JsonProperty("username") String username, @JsonProperty("BTC") CexIOBalance balanceBTC,
      @JsonProperty("NMC") CexIOBalance balanceNMC, @JsonProperty("IXC") CexIOBalance balanceIXC, @JsonProperty("DVC") CexIOBalance balanceDVC, @JsonProperty("GHS") CexIOBalance balanceGHS) {

    this.error = error;
    this.timestamp = timestamp;
    this.username = username;
    this.balanceBTC = balanceBTC;
    this.balanceNMC = balanceNMC;
    this.balanceIXC = balanceIXC;
    this.balanceDVC = balanceDVC;
    this.balanceGHS = balanceGHS;
  }

  public String getError() {

    return error;
  }

  public long getTimestamp() {

    return timestamp;
  }

  public String getUsername() {

    return username;
  }

  public CexIOBalance getBalanceBTC() {

    return balanceBTC;
  }

  public CexIOBalance getBalanceNMC() {

    return balanceNMC;
  }

  public CexIOBalance getBalanceIXC() {

    return balanceIXC;
  }

  public CexIOBalance getBalanceDVC() {

    return balanceDVC;
  }

  public CexIOBalance getBalanceGHS() {

    return balanceGHS;
  }

  @Override
  public String toString() {

    return MessageFormat.format("CexIOBalanceInfo[error={0}, timestamp={1}, username={2}, BTC={3}, NMC={4}, IXC={5}, DVC={6}, GHS={7}]", error, timestamp, username, balanceBTC, balanceNMC,
        balanceIXC, balanceDVC, balanceGHS);
  }

}

@@ -1476,16 +1476,59 @@
 nceBTC;%0A
+  private final CexIOBalance balanceLTC;  %0A
   privat
@@ -1560,16 +1560,16 @@
 nceNMC;%0A
-
   privat
@@ -2117,16 +2117,63 @@
 anceBTC,
+  @JsonProperty(%22LTC%22) CexIOBalance balanceLTC,
 %0A      @
@@ -2478,16 +2478,54 @@
 nceBTC;%0A
+    this.balanceLTC = balanceLTC;    %0A
     this
@@ -2889,32 +2889,101 @@
 alanceBTC;%0A  %7D%0A%0A
+  public CexIOBalance getBalanceLTC() %7B%0A%0A%09return balanceLTC;%0A  %7D%0A%0A  %0A
   public CexIOBa
@@ -3386,23 +3386,32 @@
 %7B3%7D,
+ BTC=%7B4%7D,
  NMC=%7B
-4
+5
 %7D, IXC=%7B
 5%7D, 
@@ -3410,17 +3410,17 @@
 XC=%7B
-5
+6
 %7D, DVC=%7B
 6%7D, 
@@ -3419,17 +3419,17 @@
 VC=%7B
-6
+7
 %7D, GHS=%7B
 7%7D%5D%22
@@ -3424,17 +3424,17 @@
 %7D, GHS=%7B
-7
+8
 %7D%5D%22, err
@@ -3469,16 +3469,28 @@
 anceBTC,
+ balanceLTC,
  balance

Update CexIOBalanceInfo.java