package com.ld.igds.n2;
|
|
/**
|
* 智能气调验证返回结果
|
*/
|
public class N2IntelCheckResp {
|
|
|
public static String SUCCESS = "SUCCESS";
|
public static String WARN = "WARN";
|
public static String PROGRESS = "PROGRESS";
|
|
private String code;
|
private String msg;
|
|
public N2IntelCheckResp() {
|
super();
|
}
|
|
N2IntelCheckResp(String code, String msg) {
|
this.code = code;
|
this.msg = msg;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getMsg() {
|
return msg;
|
}
|
|
public static N2IntelCheckResp success() {
|
return new N2IntelCheckResp(SUCCESS, "执行成功");
|
}
|
|
public static N2IntelCheckResp progress() {
|
return new N2IntelCheckResp(PROGRESS, "进行中");
|
}
|
|
public static N2IntelCheckResp warn(String msg) {
|
if (null == msg) msg = "执行失败!";
|
return new N2IntelCheckResp(WARN, msg);
|
}
|
}
|