All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.knowm.xchange.kucoin.dto.response.KucoinResponse Maven / Gradle / Ivy

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;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy