Subversion Repositories SmartDukaan

Rev

Rev 1034 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
745 chandransh 1
package in.shop2020.serving.controllers;
2
 
3
import in.shop2020.serving.model.ShipmentUpdate;
4
import in.shop2020.serving.services.BlueDartTrackingService;
5
 
6
import java.util.List;
7
 
832 rajveer 8
import org.apache.log4j.Logger;
745 chandransh 9
 
10
public class BluedartUpdatesController extends BaseController {
11
 
1044 chandransh 12
	private static final long serialVersionUID = -7381937038033808767L;
13
 
14
	private static Logger log = Logger.getLogger(Class.class);
15
	private String id;
745 chandransh 16
	private List<ShipmentUpdate> updates;
17
 
18
	public BluedartUpdatesController(){
19
		super();
20
	}
21
 
22
	public String show() {
23
    	log.info("BlueDart Updates Controller " + id);
24
    	BlueDartTrackingService trackingService = new BlueDartTrackingService();
25
    	updates = trackingService.getUpdates(id);
26
		return "show";
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  List<ShipmentUpdate> getUpdates(){
38
		return updates;
39
	}
40
}