예제 #1
0
        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));
        }
예제 #2
0
 public async static Task <IList <Trip> > GetMyTrips()
 {
     if (App.StaticData)
     {
         return(TripFeedJson.Serialize(StaticJsonData.MyTripsJson));
     }
     else
     {
         return(await FeedRequester.GetTrips(QueryFactory.MyTrips()));
     }
 }