public FlightTrackerClient Flight(string code, CodeType codeType)
 {
     flightCode = new AirCode(code, codeType);
     if (codeType == CodeType.IATA)
     {
         queryParams.Add("flightIata", code);
     }
     if (codeType == CodeType.ICAO)
     {
         queryParams.Add("flightIcao", code);
     }
     return(this);
 }
 public FlightTrackerClient DepartureAirport(string code, CodeType codeType)
 {
     departureAirport = new AirCode(code, codeType);
     if (codeType == CodeType.IATA)
     {
         queryParams.Add("depIata", code);
     }
     if (codeType == CodeType.ICAO)
     {
         queryParams.Add("depIcao", code);
     }
     return(this);
 }
 public FlightTrackerClient ArrivalAirport(string code, CodeType codeType)
 {
     arrivalAirport = new AirCode(code, codeType);
     if (codeType == CodeType.IATA)
     {
         queryParams.Add("arrIata", code);
     }
     if (codeType == CodeType.ICAO)
     {
         queryParams.Add("arrIcao", code);
     }
     return(this);
 }
 public FlightTrackerClient Airline(string code, CodeType codeType)
 {
     airline = new AirCode(code, codeType);
     if (codeType == CodeType.IATA)
     {
         queryParams.Add("airlineIata", code);
     }
     if (codeType == CodeType.ICAO)
     {
         queryParams.Add("airlineIcao", code);
     }
     return(this);
 }