public ApiExecuteResult <IEnumerable <Departed> > GetDeparted(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetDeparted(args), () => _empty.GetDeparted(args).Data, (dynamic json) => json.DepartedResult.departures )); }
public ApiExecuteResult <IEnumerable <Enroute> > GetEnroute(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetEnroute(args), () => _empty.GetEnroute(args).Data, (dynamic json) => json.EnrouteResult.enroute )); }
public ApiExecuteResult <IEnumerable <Scheduled> > GetScheduled(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetScheduled(args), () => _empty.GetScheduled(args).Data, (dynamic json) => json.ScheduledResult.scheduled )); }
public ApiExecuteResult <AirlineInfo> AirlineInfo(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetAirlineInfo(args), () => _empty.AirlineInfo(args).Data, (dynamic json) => json.AirlineInfoResult )); }
public ApiExecuteResult <IEnumerable <Arrived> > GetArrived(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetArrived(args), () => _empty.GetArrived(args).Data, (dynamic json) => json.ArrivedResult.arrivals )); }
public ApiExecuteResult <IEnumerable <FlightInfoEx> > GetFlightInfoEx(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetFlightInfoEx(args), () => _empty.GetFlightInfoEx(args).Data, (dynamic json) => json.FlightInfoExResult.flights )); }
public ApiExecuteResult <InFlightInfo> GetInFlightInfo(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetInFlightInfo(args), () => _empty.GetInFlightInfo(args).Data, (dynamic json) => json.InFlightInfoResult )); }
public ApiExecuteResult <MapFlight> GetMapFlight(HttpExecuteArg args) { var result = _raw.GetMapFlight(args); if (result == null || result.Error != null) { return(new ApiExecuteResult <MapFlight>(_empty.GetMapFlight(args).Data, result != null ? result.Error : null)); } dynamic dynamicResult = JsonConvert.DeserializeObject(result.Result, null, new UnixDateTimeConverter()); if (dynamicResult.error != null) { return(new ApiExecuteResult <MapFlight>(_empty.GetMapFlight(args).Data, ParseFlightAwareError((string)dynamicResult.error))); } return(new ApiExecuteResult <MapFlight>(new MapFlight() { image = new Base64Image((string)dynamicResult.MapFlightResult) }, result.Error)); }
public ApiExecuteResult <GetFlightId> GetFlightID(HttpExecuteArg args) { var result = _raw.GetFlightID(args); if (result == null || result.Error != null) { return(new ApiExecuteResult <GetFlightId>(_empty.GetFlightID(args).Data, result != null ? result.Error : null)); } dynamic dynamicResult = JsonConvert.DeserializeObject(result.Result, null, new UnixDateTimeConverter()); if (dynamicResult.error != null) { return(new ApiExecuteResult <GetFlightId>(_empty.GetFlightID(args).Data, ParseFlightAwareError((string)dynamicResult.error))); } return(new ApiExecuteResult <GetFlightId>(new GetFlightId() { faFlightID = dynamicResult.GetFlightIDResult }, result.Error)); }
public ApiExecuteResult <GetFlightId> GetFlightID(HttpExecuteArg args) { return(new ApiExecuteResult <GetFlightId>(new GetFlightId())); }
public ApiExecuteResult <IEnumerable <AirlineFlightSchedule> > AirlineFlightSchedule(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetAirlineFlightSchedule(args), () => _empty.AirlineFlightSchedule(args).Data, (dynamic json) => json.AirlineFlightSchedulesResult.data )); }
public ApiExecuteResult <IEnumerable <GetHistoricalTrack> > GetHistoricalTrack(HttpExecuteArg args) { return(ParseFindResult( () => _raw.GetHistoricalTrack(args), () => _empty.GetHistoricalTrack(args).Data, (dynamic json) => json.GetHistoricalTrackResult.data )); }
public ApiExecuteResult <IEnumerable <Scheduled> > GetScheduled(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <Scheduled> >(new [] { new Scheduled() })); }
public ApiExecuteResult <MapFlight> GetMapFlight(HttpExecuteArg args) { return(new ApiExecuteResult <MapFlight>(new MapFlight())); }
public ApiExecuteResult <IEnumerable <AirlineFlightSchedule> > AirlineFlightSchedule(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <AirlineFlightSchedule> >(new AirlineFlightSchedule[] { new AirlineFlightSchedule() })); }
public ApiExecuteResult <IEnumerable <GetHistoricalTrack> > GetHistoricalTrack(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <GetHistoricalTrack> >(new[] { new GetHistoricalTrack() })); }
public ApiExecuteResult <InFlightInfo> GetInFlightInfo(HttpExecuteArg args) { return(new ApiExecuteResult <InFlightInfo>(new InFlightInfo())); }
public ApiExecuteResult <IEnumerable <Departed> > GetDeparted(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <Departed> >(new[] { new Departed() })); }
public ApiExecuteResult <IEnumerable <Enroute> > GetEnroute(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <Enroute> >(new[] { new Enroute() })); }
public ApiExecuteResult <IEnumerable <Arrived> > GetArrived(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <Arrived> >(new [] { new Arrived() })); }
public ApiExecuteResult <AirportInfo> AirportInfo(HttpExecuteArg args) { return(new ApiExecuteResult <AirportInfo>(new AirportInfo())); }
public ApiExecuteResult <IEnumerable <FlightInfoEx> > GetFlightInfoEx(HttpExecuteArg args) { return(new ApiExecuteResult <IEnumerable <FlightInfoEx> >(new FlightInfoEx[] { new FlightInfoEx() })); }