Пример #1
0
        public IEnumerable <IPollenInfo> GetCityPlantPollen(string city, string plant)
        {
            var pollenSourceUrl = @"http://www.dmi.dk/vejr/sundhedsvejr/pollen/";
            var pd              = new PollenDmi(pollenSourceUrl);
            var relevantCities  = new string[] { city };
            var relevantPollens = new string[] { plant };
            var p = new PollenScraper(pd)
            {
                RelevantCities = relevantCities,
                RelevantPlants = relevantPollens
            };

            return(p.GetPollenInfo());
        }
Пример #2
0
        public IEnumerable <IPollenInfo> GetCityPollen(string city)
        {
            var pollenSourceUrl = @"http://www.dmi.dk/vejr/sundhedsvejr/pollen/";
            var pd              = new PollenDmi(pollenSourceUrl);
            var relevantCities  = new string[] { city };
            var relevantPollens = new string[] { "Bynke", "El", "Elm", "Græs", "Birk", "Hassel" };
            var p = new PollenScraper(pd)
            {
                RelevantCities = relevantCities,
                RelevantPlants = relevantPollens
            };

            return(p.GetPollenInfo());
        }