org.knowm.xchange.kucoin.dto.response.KucoinResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-kucoin Show documentation
Show all versions of xchange-kucoin Show documentation
XChange implementation for the Kucoin Exchange
The newest version!
/** Copyright 2019 Mek Global Limited. */
package org.knowm.xchange.kucoin.dto.response;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import lombok.Data;
/** Created by zicong.lu on 2018/12/14. */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class KucoinResponse implements Serializable {
private static final long serialVersionUID = 1L;
private static final String SUCCESS_CODE = "200000";
private String code;
private String msg;
private R data;
public boolean isSuccessful() {
return SUCCESS_CODE.equals(this.code);
}
public String getCode() {
return code;
}
public String getMessage() {
return msg;
}
}