コード例 #1
0
        public List<Movie> GetMovies()
        {
            Kolosej kolosej = new Kolosej();
            DownloadXmlData dxd = new DownloadXmlData();
            dxd.GetXmlResult(kolosej);
            string s = dxd.GetXml();

            List<Movie> movies = new List<Movie>();

            //hardcoded remove later
            movies = kolosej.Parse(s, "Maribor", DateTime.Now);

            return movies;
        }
コード例 #2
0
        public List<Movie> GetMoviesKolosej(string city, string date)
        {
            Kolosej kolosej = new Kolosej();
            DownloadXmlData dxd = new DownloadXmlData();
            dxd.GetXmlResult(kolosej);
            string s = dxd.GetXml();

            List<Movie> movies = new List<Movie>();

            string dateFormat = "yyyyMMdd";
            DateTime dt = DateTime.ParseExact(date, dateFormat, null);
            movies = kolosej.Parse(s, city, dt);

            return movies;
        }