-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJobResult.java
43 lines (33 loc) · 893 Bytes
/
JobResult.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/**
* Created with IntelliJ IDEA.
* User: WuYifei
* Date: 2017/2/8
* Time: 10:06
*/
public class JobResult {
public static final int RETURN_SUCCESS = 1;
public static final int RETURN_FAIL = 0;
private int returnCode;
private String returnMsg;
public JobResult() {
}
public JobResult(int returnCode, String returnMsg) {
this.returnCode = returnCode;
this.returnMsg = returnMsg;
}
public boolean isSuccess() {
return getReturnCode() == RETURN_SUCCESS;
}
public int getReturnCode() {
return returnCode;
}
public void setReturnCode(int returnCode) {
this.returnCode = returnCode;
}
public String getReturnMsg() {
return returnMsg;
}
public void setReturnMsg(String returnMsg) {
this.returnMsg = returnMsg;
}
}