Exemplo n.º 1
0
        public async Task <bool> SaveDeviceSettingInfoAsync()
        {
            using (var proxy = new MogamiApiServiceClient())
            {
                await proxy.LoadDeviceSettingAsync();

                if (this.DeviceSettingInfo == null)
                {
                    this._DeviceSettingInfo = new DeviceSettingInfo();
                }

                var req  = new REQUEST_SAVEDEVICRSETTING();
                var json = JsonConvert.SerializeObject(this.DeviceSettingInfo, Formatting.None);
                req.Data = json;
                var rsp = await proxy.SaveDeviceSettingAsync(req);

                return(rsp.Success);
            }
        }