/// <summary>
        /// 设备控制
        /// </summary>
        /// <returns></returns>
        public BaseRetViewModel SetDevice(DeviceViewModel deviceModel)
        {
            BaseRetViewModel retModel    = null;
            string           weiXinToken = WeChatService.GetWeiXinToken(EnumWeChatType.Client.GetHashCode());
            var url = string.Format(WeChatConsts.IOT_SET_DEVICE, weiXinToken);

            if (deviceModel != null)
            {
                var parms  = JsonConvert.SerializeObject(deviceModel);
                var result = NetUtil.WechatSendPostRequest(url, parms);
                if (!string.IsNullOrWhiteSpace(result))
                {
                    retModel = JsonConvert.DeserializeObject <BaseRetViewModel>(result.Trim());
                }
            }
            return(retModel);
        }
        /// <summary>
        /// 设备查询
        /// </summary>
        /// <returns></returns>
        public BaseRetViewModel GetDevice(DeviceViewModel deviceModel)
        {
            BaseRetViewModel retModel    = null;
            string           weiXinToken = WeChatService.GetWeiXinToken(EnumWeChatType.Client.GetHashCode());
            var url = string.Format(WeChatConsts.IOT_GET_DEVICE, weiXinToken);

            if (deviceModel != null)
            {
                var parms = string.Format("&device_type={0}&device_id={1}&services={2}&user={3}&data={4}",
                                          deviceModel.device_type, deviceModel.device_id, deviceModel.services.ToArray().ToString(), deviceModel.data);
                var result = NetUtil.ResponseByPost(url, parms);
                if (string.IsNullOrWhiteSpace(result))
                {
                    retModel = JsonConvert.DeserializeObject <BaseRetViewModel>(result.Trim());
                }
            }
            return(retModel);
        }
        /// <summary>
        /// 状态通知回调处理
        /// </summary>
        /// <param name="notifyModel"></param>
        /// <returns></returns>
        public BaseRetViewModel DeviceStatusCallBack(StatusNotifyViewModel notifyModel)
        {
            var ret = new BaseRetViewModel();

            return(ret);
        }
        /// <summary>
        /// 设备控制回调处理
        /// </summary>
        /// <param name="notifyModel"></param>
        /// <returns></returns>
        public BaseRetViewModel SetDeviceCallBack(NotifyViewModel notifyModel)
        {
            var ret = new BaseRetViewModel();

            return(ret);
        }