Subversion Repositories SmartDukaan

Rev

Rev 12964 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 12964 Rev 20020
Line 139... Line 139...
139
				SimpleDateFormat timeformat = new SimpleDateFormat("HH:mm:ss");
139
				SimpleDateFormat timeformat = new SimpleDateFormat("HH:mm:ss");
140
trackDetailsLoop:for (int i=0; i< trackDetails.length; i++) {
140
trackDetailsLoop:for (int i=0; i< trackDetails.length; i++) {
141
					TrackEvent trackEvents[]= trackDetails[i].getEvents();
141
					TrackEvent trackEvents[]= trackDetails[i].getEvents();
142
					if(trackEvents!=null && trackEvents.length > 0){
142
					if(trackEvents!=null && trackEvents.length > 0){
143
						for(TrackEvent te : trackEvents){
143
						for(TrackEvent te : trackEvents){
144
							if("AR".equalsIgnoreCase(te.getEventType())){
144
							if("AF".equalsIgnoreCase(te.getEventType())){
145
								fedexReachedDestinationOrdersMap.put(awbNumber, dateformat.format(te.getTimestamp().getTime())+" "+timeformat.format(te.getTimestamp().getTime()));
145
								fedexReachedDestinationOrdersMap.put(awbNumber, dateformat.format(te.getTimestamp().getTime())+" "+timeformat.format(te.getTimestamp().getTime()));
146
								break trackDetailsLoop;
146
								break trackDetailsLoop;
147
							}	
147
							}	
148
						}
148
						}
149
					}
149
					}
Line 324... Line 324...
324
		}
324
		}
325
	}
325
	}
326
	
326
	
327
	public static void main(String[] args) {
327
	public static void main(String[] args) {
328
		FedExTrackingService trackClient = new FedExTrackingService(WarehouseLocation.Delhi);
328
		FedExTrackingService trackClient = new FedExTrackingService(WarehouseLocation.Delhi);
329
		List<ShipmentUpdate> updates = trackClient.getUpdates("796869788166");
329
		List<ShipmentUpdate> updates = trackClient.getUpdates("783305300460");
330
		for(ShipmentUpdate update: updates){
330
		for(ShipmentUpdate update: updates){
331
			System.out.println(update.toString());
331
			System.out.println(update.toString());
332
		}
332
		}
333
	}
333
	}
334
 
334