Example #1
0
        public ROUTEHandler(JObject apiResponse)
        {
            if (apiResponse == null)
            {
                return;
            }

            HtmlDocument html = new HtmlDocument();

            html.LoadHtml(WebUtility.HtmlDecode(apiResponse["d"]["result"].ToString()));
            table = new MAVTable(html.DocumentNode.Descendants("table").FirstOrDefault(tb => tb.HasClass("uf")));
        }
        public STATIONHandler(JObject apiResponse)
        {
            ;
            if (apiResponse == null)
            {
                return;
            }

            HtmlDocument html = new HtmlDocument();

            html.LoadHtml(WebUtility.HtmlDecode(apiResponse["d"]["result"].ToString()));
            table       = new MAVTable(html.DocumentNode.Descendants("table").FirstOrDefault(tb => tb.HasClass("af")));
            stationName = apiResponse["d"]["param"]["a"].ToString().Trim();
        }