public DynamicDeviceInfo GetDynamicDeviceInfoInternal() { BridgeDynamicDeviceInfo bridgeDynamicDeviceInfo = new BridgeDynamicDeviceInfo(); WearableGetDynamicDeviceInfo(ref bridgeDynamicDeviceInfo); return(CreateDynamicDeviceInfo(bridgeDynamicDeviceInfo)); }
private static DynamicDeviceInfo CreateDynamicDeviceInfo(BridgeDynamicDeviceInfo bridgeDynamicDeviceInfo) { DynamicDeviceInfo dynamicDeviceInfo = new DynamicDeviceInfo(); dynamicDeviceInfo.deviceStatus = bridgeDynamicDeviceInfo.deviceStatus; dynamicDeviceInfo.transmissionPeriod = bridgeDynamicDeviceInfo.transmissionPeriod; return(dynamicDeviceInfo); }
private static DynamicDeviceInfo CreateDynamicDeviceInfo(BridgeDynamicDeviceInfo bridgeDynamicDeviceInfo) { DynamicDeviceInfo dynamicDeviceInfo = new DynamicDeviceInfo(); dynamicDeviceInfo.deviceStatus = bridgeDynamicDeviceInfo.deviceStatus; dynamicDeviceInfo.transmissionPeriod = bridgeDynamicDeviceInfo.transmissionPeriod; dynamicDeviceInfo.activeNoiseReductionMode = (ActiveNoiseReductionMode)bridgeDynamicDeviceInfo.activeNoiseReductionMode; dynamicDeviceInfo.availableActiveNoiseReductionModes = bridgeDynamicDeviceInfo.availableActiveNoiseReductionModes; dynamicDeviceInfo.controllableNoiseCancellationLevel = bridgeDynamicDeviceInfo.controllableNoiseCancellationLevel; dynamicDeviceInfo.controllableNoiseCancellationEnabled = bridgeDynamicDeviceInfo.controllableNoiseCancellationEnabled; dynamicDeviceInfo.totalControllableNoiseCancellationLevels = bridgeDynamicDeviceInfo.totalControllableNoiseCancellationLevels; return(dynamicDeviceInfo); }
private static extern void WearableGetDynamicDeviceInfo(ref BridgeDynamicDeviceInfo dynamicDeviceInfo);