org.knowm.xchange.huobi.dto.account.HuobiAccount Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-huobi Show documentation
Show all versions of xchange-huobi Show documentation
XChange implementation for the Huobi Exchange
The newest version!
package org.knowm.xchange.huobi.dto.account;
import com.fasterxml.jackson.annotation.JsonProperty;
public class HuobiAccount {
private final long id;
private final String state;
private final String type;
private final String userID;
public HuobiAccount(
@JsonProperty("id") long id,
@JsonProperty("state") String state,
@JsonProperty("type") String type,
@JsonProperty("user-id") String userID) {
this.id = id;
this.state = state;
this.type = type;
this.userID = userID;
}
public long getId() {
return id;
}
private String getState() {
return state;
}
private String getType() {
return type;
}
private String getUserID() {
return userID;
}
@Override
public String toString() {
return String.format(
"[id = %s, state = %s, type = %s, userID = %s]",
getId(), getState(), getType(), getUserID());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy