QNSlimUserCurveData

User curve data class

Property Overview

Name Type Description
curveWeightArr NSArray Curve weight data array, used to store weight data points on the weight curve. Weight data unit is kilograms (kg)
todayFlag BOOL Today's data flag, indicates whether the last valid weight data comes from today's measurement YES: The last valid weight (WEIGHT14) is data measured today NO: The last valid weight is not data measured today

Curve Data Array Specifications

  1. The array must contain 14 weight values
  2. Data points correspond to points on the scale curve from left to right (WEIGHT1 ~ WEIGHT14)
  3. Valid data (>0) must be arranged continuously starting from the left
  4. Invalid data points (no measurement value) must be represented by 0and can only appear after valid data
  5. Zero values cannot appear between valid data

Correct Data Arrangement Rules

  • Valid data must appear continuously on the left side of the array
  • Invalid data (0) must appear on the right side of the array
  • Zero values are prohibited between valid data

Special Scenario Handling

Assuming there are only 3 data points for the curve, with weight values of 70.5kg, 70.2kg, and 70.0kg respectively, the iOS sample code for curveWeightArris as follows:

@[@70.5, @70.2, @70.0, @0, @0, @0, @0, @0, @0, @0, @0, @0, @0, @0];

results matching ""

    No results matching ""