Want more features on Pastebin? Sign Up, it's FREE!
Guest

itineraryBuilder

By: a guest on Jan 31st, 2012  |  syntax: Java  |  size: 0.70 KB  |  views: 60  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ItineraryAirBuilder itineraryBuilder = new ItineraryAirBuilder();
  2.                
  3.                 itineraryBuilder.addBaggagePolicy("this is the baggage policy1");
  4.                 itineraryBuilder.addMiscInfo("Itinerary for one way A->B");
  5.                
  6.                 AirSegmentBuilder segmentBuilder = new AirSegmentBuilder();
  7.                 segmentBuilder.addDepartureAirport("Delhi");
  8.                 segmentBuilder.addArrivalAirport("Goa");
  9.                 segmentBuilder.addDepartureTime("10:00");
  10.                 segmentBuilder.addArrivalTime("06:00");
  11.                 segmentBuilder.addDaysIncremented(1);
  12.                 segmentBuilder.addDuration("20:00");
  13.                 segmentBuilder.addAirline("Kingfisher");
  14.                 segmentBuilder.consolidate();
  15.                
  16.                 itineraryBuilder.addAirSegment(segmentBuilder.GetAirSegment());
  17.                 itineraryBuilder.consolidate();
clone this paste RAW Paste Data