StepData.accumulate constructor

StepData.accumulate(
  1. StepData stepData,
  2. 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;