Line | |
---|
1 | package omq.ztest.calculator; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | |
---|
5 | public class Message implements Serializable { |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | /** |
---|
10 | * |
---|
11 | */ |
---|
12 | private static final long serialVersionUID = 1L; |
---|
13 | private int code; |
---|
14 | private String message; |
---|
15 | |
---|
16 | public Message() { |
---|
17 | } |
---|
18 | |
---|
19 | public Message(int code, String message) { |
---|
20 | this.code = code; |
---|
21 | this.message = message; |
---|
22 | } |
---|
23 | |
---|
24 | public int getCode() { |
---|
25 | return code; |
---|
26 | } |
---|
27 | |
---|
28 | public void setCode(int code) { |
---|
29 | this.code = code; |
---|
30 | } |
---|
31 | |
---|
32 | public String getMessage() { |
---|
33 | return message; |
---|
34 | } |
---|
35 | |
---|
36 | public void setMessage(String message) { |
---|
37 | this.message = message; |
---|
38 | } |
---|
39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.