1 package org.oxerr.huobi.rest.dto.trade; 2 3 import com.fasterxml.jackson.annotation.JsonProperty; 4 5 public class HuobiError { 6 7 public static final int ORDER_NOT_EXIST = 26; 8 9 private final int code; 10 private final String msg; 11 private final long time; 12 13 public HuobiError( 14 @JsonProperty("code") final int code, 15 @JsonProperty("msg") final String msg, 16 @JsonProperty("time") final long time) { 17 this.code = code; 18 this.msg = msg; 19 this.time = time; 20 } 21 22 public int getCode() { 23 return code; 24 } 25 26 public String getMsg() { 27 return msg; 28 } 29 30 public long getTime() { 31 return time; 32 } 33 34 }