Subversion Repositories SmartDukaan

Rev

Rev 7030 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7030 Rev 7031
Line 25... Line 25...
25
	
25
	
26
	public List<ShipmentUpdate> getUpdates(String awbNumber){
26
	public List<ShipmentUpdate> getUpdates(String awbNumber){
27
		List<ShipmentUpdate> updates = new ArrayList<ShipmentUpdate>();
27
		List<ShipmentUpdate> updates = new ArrayList<ShipmentUpdate>();
28
		try{
28
		try{
29
	    	TransactionClient tc = new TransactionClient();
29
	    	TransactionClient tc = new TransactionClient();
30
	    	List<String> tokens= tc.getClient().receiveUpdatesForRedExpress(id);
30
	    	List<String> tokens= tc.getClient().receiveUpdatesForRedExpress(awbNumber);
31
	    	for(String token: tokens){
31
	    	for(String token: tokens){
32
	    		String[] parts = token.split("~!~");
32
	    		String[] parts = token.split("~!~");
33
	    		ShipmentUpdate update = new ShipmentUpdate();
33
	    		ShipmentUpdate update = new ShipmentUpdate();
34
	        	update.date = parts[0];
34
	        	update.date = parts[0];
35
	        	update.time = "          " + parts[1];
35
	        	update.time = "          " + parts[1];