Subversion Repositories SmartDukaan

Rev

Rev 1907 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package in.shop2020.serving.controllers;

import in.shop2020.serving.model.ShipmentUpdate;
import in.shop2020.serving.services.AFLTrackingService;

import java.util.List;

import org.apache.log4j.Logger;

@SuppressWarnings("serial")
public class AflUpdatesController extends BaseController {

        private static Logger log = Logger.getLogger(Class.class);
        private String id;
        private List<ShipmentUpdate> updates;

        public AflUpdatesController(){
                super();
        }

        public String show() {
        log.info("AFL Updates Controller " + id);
        AFLTrackingService trackingService = new AFLTrackingService();
        updates = trackingService.getUpdates(id);
                return "show";
        }

        public String getId(){
                return id;
        }

        public void setId(String id){
                this.id = id;
        }

        public  List<ShipmentUpdate> getUpdates(){
                return updates;
        }
}