Line | |
---|
1 | package omq.common.message; |
---|
2 | |
---|
3 | import java.io.Serializable; |
---|
4 | |
---|
5 | import omq.exception.OmqException; |
---|
6 | |
---|
7 | public class Response implements Serializable { |
---|
8 | |
---|
9 | /** |
---|
10 | * |
---|
11 | */ |
---|
12 | private static final long serialVersionUID = 3368363997012527189L; |
---|
13 | |
---|
14 | private Object result; |
---|
15 | private OmqException error; |
---|
16 | private String id; |
---|
17 | private String idOmq; |
---|
18 | |
---|
19 | public Response() { |
---|
20 | } |
---|
21 | |
---|
22 | public Response(String id, String idOmq, Object result, OmqException error) { |
---|
23 | this.id = id; |
---|
24 | this.idOmq = idOmq; |
---|
25 | this.result = result; |
---|
26 | this.error = error; |
---|
27 | } |
---|
28 | |
---|
29 | public String getId() { |
---|
30 | return id; |
---|
31 | } |
---|
32 | |
---|
33 | public void setId(String id) { |
---|
34 | this.id = id; |
---|
35 | } |
---|
36 | |
---|
37 | public String getIdOmq() { |
---|
38 | return idOmq; |
---|
39 | } |
---|
40 | |
---|
41 | public void setIdOmq(String idOmq) { |
---|
42 | this.idOmq = idOmq; |
---|
43 | } |
---|
44 | |
---|
45 | public Object getResult() { |
---|
46 | return result; |
---|
47 | } |
---|
48 | |
---|
49 | public void setResult(Object result) { |
---|
50 | this.result = result; |
---|
51 | } |
---|
52 | |
---|
53 | public OmqException getError() { |
---|
54 | return error; |
---|
55 | } |
---|
56 | |
---|
57 | public void setError(OmqException error) { |
---|
58 | this.error = error; |
---|
59 | } |
---|
60 | |
---|
61 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.