CLCmdDeviceConfig.from constructor

CLCmdDeviceConfig.from(
  1. PERIPHERAL_DEVICE_CONFIG_CONTEXT v
)

Implementation

factory CLCmdDeviceConfig.from(PERIPHERAL_DEVICE_CONFIG_CONTEXT v) =>
    CLCmdDeviceConfig(
        PPGDayIntervalMilliSec: v.PPGDayIntervalMilliSec,
        PPGNightIntervalMilliSec: v.PPGNightIntervalMilliSec,
        SkinTempDayIntervalMilliSec: v.SkinTempDayIntervalMilliSec,
        SkinTempNightIntervalMilliSec: v.SkinTempNightIntervalMilliSec,
        bUIScreenActivateWristFlip: v.bUIScreenActivateWristFlip,
        bUIScreenActivatePressHold1s: v.bUIScreenActivatePressHold1s,
        bUIScreenActivatePressHold3s: v.bUIScreenActivatePressHold3s,
        bUIScreenTapping: v.bUIScreenTapping,
        bUINavigationTapping: v.bUINavigationTapping,
        bUINavigationWristShaking: v.bUINavigationWristShaking,
        bReminderOffWeekends: v.bReminderOffWeekends,
        idleAlertTimeInMinutes: v.idleAlertTimeInMinutes,
        idleAlertTimeStart: v.idleAlertTimeStart,
        idleAlertTimeEnd: v.idleAlertTimeEnd,
        screenOnTimeGeneral: v.screenOnTimeGeneral,
        screenOnTimeHeartRate: v.screenOnTimeHeartRate,
        sleepSensitivity: v.sleepSensitivity,
        stepSensitivity: v.stepSensitivity,
        vocSampleRate: v.vocSampleRate,
        alcoholSensitivity: v.alcoholSensitivity,
        cityname: v.cityname.toDartString(),
        hrbroadcast: v.hrbroadcast,
        touchEnable: v.touchEnable,
        autoBPEnable: v.autoBPEnable,
        autoBOEnable: v.autoBOEnable)
      .._cityname_len = v.cityname_len;