View Javadoc
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  	public ServiceControllerResponse() {
11  	}
12  
13  	public ServiceControllerResponse(String action) {
14  		super();
15  		this.action = action;
16  	}
17  
18  	public ServiceControllerResponse(String action, String error) {
19  		super();
20  		this.action = action;
21  		this.error = error;
22  	}
23  
24  	/**
25  	 * @return the error
26  	 */
27  	public String getError() {
28  		return error;
29  	}
30  
31  	/**
32  	 * @param error
33  	 *            the error to set
34  	 */
35  	public void setError(String error) {
36  		this.error = error;
37  	}
38  
39  	/**
40  	 * @return the action
41  	 */
42  	public String getAction() {
43  		return action;
44  	}
45  
46  	/**
47  	 * @param action
48  	 *            the action to set
49  	 */
50  	public void setAction(String action) {
51  		this.action = action;
52  	}
53  }