// IClientPropertyHandler public async Task <JObject> GetReportedPropertyAsync() { var request = new Message.GetDeviceInfoRequest(); var response = await _systemConfiguratorProxy.SendCommandAsync(request) as Message.GetDeviceInfoResponse; DeviceInfoDataContract.ReportedProperties reportedProperties = new DeviceInfoDataContract.ReportedProperties(); reportedProperties.batteryRuntime = response.batteryRuntime; reportedProperties.batteryRemaining = response.batteryRemaining; reportedProperties.batteryStatus = response.batteryStatus; reportedProperties.osEdition = response.osEdition; reportedProperties.secureBootState = response.secureBootState; reportedProperties.totalMemory = response.totalMemory; reportedProperties.totalStorage = response.totalStorage; reportedProperties.name = response.name; reportedProperties.processorArchitecture = response.processorArchitecture; reportedProperties.commercializationOperator = response.commercializationOperator; reportedProperties.displayResolution = response.displayResolution; reportedProperties.radioSwVer = response.radioSwVer; reportedProperties.processorType = response.processorType; reportedProperties.platform = response.platform; reportedProperties.osVer = response.osVer; reportedProperties.fwVer = response.fwVer; reportedProperties.hwVer = response.hwVer; reportedProperties.oem = response.oem; reportedProperties.type = response.type; reportedProperties.lang = response.lang; reportedProperties.dmVer = response.dmVer; reportedProperties.model = response.model; reportedProperties.manufacturer = response.manufacturer; reportedProperties.id = response.id; return(reportedProperties.ToJsonObject()); }
private async Task <Message.GetDeviceInfoResponse> GetDeviceInfoAsync() { var request = new Message.GetDeviceInfoRequest(); return(await this._systemConfiguratorProxy.SendCommandAsync(request) as Message.GetDeviceInfoResponse); }