Пример #1
0
 public override CanonicalFlight Translate(AirlineCompanySW swObject)
 {
     return(new CanonicalFlight()
     {
         Airline = "Southwest Airlines",
         Destination = AirportDatabase.LookupIATACode(swObject.Destination),
         Direction = FlightDirection.Unknown,
         EventDateTime = DateTime.Parse(swObject.date + " " + swObject.departure),
         FlightNo = "SWA" + swObject.FlightNo.Substring(3),
         Origin = "",
     });
 }
Пример #2
0
 public override CanonicalFlight Translate(AirlineCompanyKLM klmObject)
 {
     return(new CanonicalFlight()
     {
         Airline = "Royal Dutch Airlines",
         Destination = AirportDatabase.LookupIATACode(klmObject.Destination),
         Direction = FlightDirection.Unknown,
         EventDateTime = klmObject.dateslashtime,
         FlightNo = "KLM" + klmObject.FlightNo,
         Origin = klmObject.Origin,
     });
 }