Пример #1
0
            /*!
             * \brief   Loads climate data per http request from the ATB/runlevel3 web service.
             *
             * \param   location    The location to get nearest station data from.
             * \param   tag         The tag to prefer climate data with this tag, can be null to use default tag.
             * \param   start       The start Date/Time of requested data.
             * \param   end         The end Date/Time of requested data.
             *
             * \return  The number of datasets in this climate, a number of 0 means that there was an exception and no data read.
             */

            public async Task <int> loadClimateByLocationTagFromATBWebService(Location location, String tag, DateTime start, DateTime end)
            {
                _location = location;
                if (_start == null || _start > start || _end == null || _end < end)
                {
                    return(loadCsv(await WebApiRequest.LoadClimateByLocationTagFromATBWebService(_location, tag, start, end, this._step)));
                }
                else
                {
                    return(climateData.Count);
                }
            }