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

            return(JsonConvert.DeserializeObject <TravelResponse>(RuterConnector.DownloadJson(RuterUrl.TravelUrl.GetTravelsUrl + qs)));
        }
Exemple #3
0
 internal static List <Line> GetLines()
 {
     return(JsonConvert.DeserializeObject <List <Line> >(RuterConnector.DownloadJson(RuterUrl.LineUrl.GetLinesUrl)));
 }
Exemple #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))));
 }