internal static List <Line> GetLinesByStopId(string id) { return(JsonConvert.DeserializeObject <List <Line> >(RuterConnector.DownloadJson(string.Format(RuterUrl.LineUrl.GetLinesByStopIDUrlWithArgs, id)))); }
internal static TravelResponse GetTravels(TravelRequest travelRequest) { var qs = UrlHelper.GetQueryString(travelRequest); return(JsonConvert.DeserializeObject <TravelResponse>(RuterConnector.DownloadJson(RuterUrl.TravelUrl.GetTravelsUrl + qs))); }
internal static List <Line> GetLines() { return(JsonConvert.DeserializeObject <List <Line> >(RuterConnector.DownloadJson(RuterUrl.LineUrl.GetLinesUrl))); }
internal static TravelResponse GetTravels(string fromPlaceId, string toPlaceId, bool isAfter) { return(JsonConvert.DeserializeObject <TravelResponse>(RuterConnector.DownloadJson(string.Format(RuterUrl.TravelUrl.GetTravelsUrlWithArgs, fromPlaceId, toPlaceId, isAfter)))); }