public static async Task <IList <Trip> > GetTrips(ApiQueryMaker query) { var answer = await Rest.Request(query); if (answer.Status != Status.Ok) { return(null); } return(TripFeedJson.Serialize(answer.Result)); }
public async static Task <IList <Trip> > GetMyTrips() { if (App.StaticData) { return(TripFeedJson.Serialize(StaticJsonData.MyTripsJson)); } else { return(await FeedRequester.GetTrips(QueryFactory.MyTrips())); } }