示例#1
0
        public async Task <RootObject> GetWeatherDataUsingCityId(UInt16 cityId)
        {
            Dictionary <string, string> parameter = new Dictionary <string, string>();

            parameter.Add("id", Convert.ToString(cityId));
            RootObject data = await WebAPIHelper.GetAsync <RootObject>(string.Empty, parameter);

            return(data);
        }
        public async Task <List <Door> > GetDoors()
        {
            string StrData = await _helper.GetAsync(Uri);

            return(_helper.Deserialize <List <Door> >(StrData));
        }