Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
517 rajveer 1
package in.shop2020.serving.controllers;
2
 
1044 chandransh 3
import java.util.List;
4
 
5
import org.apache.log4j.Logger;
6
 
517 rajveer 7
import in.shop2020.serving.controllers.BaseController;
745 chandransh 8
import in.shop2020.serving.model.ShipmentUpdate;
545 rajveer 9
import in.shop2020.serving.services.AramexTrackingService;
517 rajveer 10
 
545 rajveer 11
/**
12
 * For aramex updater
13
 * 
14
 * @author rajveer
15
 *
16
 */
17
public class AramexUpdatesController extends BaseController{
517 rajveer 18
 
19
	private static final long serialVersionUID = 1L;
832 rajveer 20
	private static Logger log = Logger.getLogger(Class.class);
517 rajveer 21
	private String id;
745 chandransh 22
	private List<ShipmentUpdate> updates;
517 rajveer 23
 
545 rajveer 24
	public AramexUpdatesController(){
517 rajveer 25
		super();
26
	}
27
 
28
	public String show() {
745 chandransh 29
    	log.info("AramexUpdatesController.show " + id);
30
    	AramexTrackingService trackingService = new AramexTrackingService();
31
    	updates = trackingService.getUpdates(id);
517 rajveer 32
		return "show";
33
	}
34
 
35
	public String getId(){
36
		return id;
37
	}
38
 
39
	public void setId(String id){
40
		this.id = id;
41
	}
745 chandransh 42
 
43
	public  List<ShipmentUpdate> getUpdates(){
517 rajveer 44
		return updates;
45
	}
46
}