1 | |
package booking.controller.services; |
2 | |
|
3 | |
public class ServiceControllerResponse { |
4 | |
public static final String STATUS_KO = "ko"; |
5 | |
public static final String STATUS_OK = "ok"; |
6 | |
String action; |
7 | |
String error; |
8 | |
String code; |
9 | |
|
10 | 0 | public ServiceControllerResponse() { |
11 | 0 | } |
12 | |
|
13 | |
public ServiceControllerResponse(String action) { |
14 | 0 | super(); |
15 | 0 | this.action = action; |
16 | 0 | } |
17 | |
|
18 | |
public ServiceControllerResponse(String action, String error) { |
19 | 0 | super(); |
20 | 0 | this.action = action; |
21 | 0 | this.error = error; |
22 | 0 | } |
23 | |
|
24 | |
|
25 | |
|
26 | |
|
27 | |
public String getError() { |
28 | 0 | return error; |
29 | |
} |
30 | |
|
31 | |
|
32 | |
|
33 | |
|
34 | |
|
35 | |
public void setError(String error) { |
36 | 0 | this.error = error; |
37 | 0 | } |
38 | |
|
39 | |
|
40 | |
|
41 | |
|
42 | |
public String getAction() { |
43 | 0 | return action; |
44 | |
} |
45 | |
|
46 | |
|
47 | |
|
48 | |
|
49 | |
|
50 | |
public void setAction(String action) { |
51 | 0 | this.action = action; |
52 | 0 | } |
53 | |
} |