예제 #1
0
 internal static List <Line> GetLinesByStopId(string id)
 {
     return(JsonConvert.DeserializeObject <List <Line> >(RuterConnector.DownloadJson(string.Format(RuterUrl.LineUrl.GetLinesByStopIDUrlWithArgs, id))));
 }
예제 #2
0
        internal static TravelResponse GetTravels(TravelRequest travelRequest)
        {
            var qs = UrlHelper.GetQueryString(travelRequest);

            return(JsonConvert.DeserializeObject <TravelResponse>(RuterConnector.DownloadJson(RuterUrl.TravelUrl.GetTravelsUrl + qs)));
        }
예제 #3
0
 internal static List <Line> GetLines()
 {
     return(JsonConvert.DeserializeObject <List <Line> >(RuterConnector.DownloadJson(RuterUrl.LineUrl.GetLinesUrl)));
 }
예제 #4
0
 internal static TravelResponse GetTravels(string fromPlaceId, string toPlaceId, bool isAfter)
 {
     return(JsonConvert.DeserializeObject <TravelResponse>(RuterConnector.DownloadJson(string.Format(RuterUrl.TravelUrl.GetTravelsUrlWithArgs, fromPlaceId, toPlaceId, isAfter))));
 }