Example #1
0
        public async Task <Respond> GetRespond()
        {
            Respond respond = new Respond();

            try
            {
                domainName = new Uri(API_ENDPOINT + parameters);
                string strRespond = await client.GetStringAsync(domainName);

                respond
                .ParseWeather(strRespond)
                .ParseWind(strRespond)
                .ParseMain(strRespond)
                .ParseCloud(strRespond)
                .ParseRain(strRespond)
                .ParseSnow(strRespond)
                .ParseSystem(strRespond);
            }
            catch (Exception e)
            {
            }

            return(respond);
        }
Example #2
0
 void Initialize()
 {
     respond         = new Respond();
     request         = new Request();
     lblWeather.Text = string.Empty;
 }