StepData.accumulate constructor
StepData.accumulate(
- StepData stepData,
- StepCountWithTimestamp stepCount
Implementation
StepData.accumulate(StepData stepData, StepCountWithTimestamp stepCount)
: previousDate = stepData.previousDate,
previousStepCount = stepData.previousStepCount,
todayDate = stepData.todayDate,
todayStepCount = stepCount.stepsFromBoot,
bootCount = stepCount.bootCount,
stack = stepData.stack,
lastSavedAt = stepCount.timeStamp.toIso8601String(),
previousStepCountSavedAt = stepData.previousStepCountSavedAt;