Subversion Repositories SmartDukaan

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
458 rajveer 1
/**
2
 * 
3
 */
4
package in.shop2020.serving.controllers;
5
 
6
import org.apache.juli.logging.Log;
7
import org.apache.juli.logging.LogFactory;
8
import org.apache.struts2.rest.DefaultHttpHeaders;
9
import org.apache.struts2.rest.HttpHeaders;
10
 
11
/**
12
 * @author rajveer
13
 *
14
 */
15
public class EstimateController extends BaseController {
16
 
17
	/**
18
	 * 
19
	 */
20
	private static Log log = LogFactory.getLog(EstimateController.class);
21
 
22
	private String id;
23
 
24
	public EstimateController() {
25
		super();
26
	}
27
 
28
    // GET /logout
29
    public HttpHeaders show() throws Exception {
30
 
31
    	return new DefaultHttpHeaders("index");
32
    }
33
 
34
    /**
35
     * 
36
     * @param id
37
     */
38
    public void setId(String id) {
39
        this.id = id;
40
    }
41
 
42
    public long getEstimatedTime() {
43
    	if(Long.parseLong(id) == 560001){
44
    		return 48;
45
    	}else{
46
    		return 48+24;
47
    	}
48
    }
49
}