public void onFlightInfoQueryCallback(FlightQueryReference.FlightInfo[] flights) { Console.WriteLine("-------- Displaying Flight Information from the system -------------- "); foreach (FlightInfo f in flights) { Console.WriteLine("FlightInfo - {0}", f.ToString()); } Console.WriteLine(" ------------------------------------------------------------------"); Console.WriteLine(); }
public void onDestinationQueryCallback(FlightQueryReference.DestinationInfo[] destinations) { Console.WriteLine("-------- Displaying Destination Information from the system -------------- "); foreach (FlightQueryReference.DestinationInfo d in destinations) { Console.WriteLine("{0} is {1}", d.CityCode, d.CityName); } Console.WriteLine(" ------------------------------------------------------------------"); Console.WriteLine(); }