コード例 #1
0
        /// <summary>
        /// Retrieve private or partner weather station data
        /// </summary>
        /// <param name="deviceId">leave null or empty to get all devices, specify to get target device</param>
        /// <param name="getfavorites">set to true to get favorited devices</param>
        public async Task <Response <NetatmoModuleData> > GetStationsData(string deviceId = null, bool getfavorites = false)
        {
            var content  = HttpContentCreator.CreateGetStationsDataHttpContent(deviceId, getfavorites);
            var response = await Request <NetatmoModuleData>(AppConstants.NetatmoGetStationsDataUrl, content);

            return(response);
        }