com.kucoin.sdk.rest.response.KucoinResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kucoin-java-sdk Show documentation
Show all versions of kucoin-java-sdk Show documentation
Fixed fork of the official Kucoin SDK
The newest version!
/**
* Copyright 2019 Mek Global Limited.
*/
package com.kucoin.sdk.rest.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";
protected String code;
protected String msg;
private R data;
public boolean isSuccessful() {
return SUCCESS_CODE.equals(this.code);
}
}