QNSlimUserSlimConfig
Slim Scale user weight loss configuration
Property Overview
| Name | Type | Description |
|---|---|---|
| slimDayCountRule | QNSlimDayCountRule | Weight loss day counting rule, used to set how weight loss days are calculated, determines how weight loss progress days are incremented. Default: QNSlimDayCountRuleAutoIncrement |
| slimDays | int | Weight loss progress days, indicates the user's current weight loss progress days, used to track the execution days of the user's weight loss plan |
| curveWeightSelection | QNSlimCurveWeightSelection | Weight curve data selection rule, used to specify which weight data is used for the weight curve chart. Default: QNSlimCurveWeightSelectionLastOfDay |
| targetWeight | double | User target weight (unit: kg) |
| initialWeight | double | User initial weight (unit: kg) |
Enumeration Descriptions
1. QNSlimDayCountRule
Weight loss day counting rule enumeration
typedef NS_ENUM(NSUInteger, QNSlimDayCountRule) {
QNSlimDayCountRuleAutoIncrement = 0, // Auto increment
QNSlimDayCountRuleByMeasurement = 1 // Increment by measurement days
};
Enumeration Value Descriptions
| Enumeration Value | Value | Description |
|---|---|---|
| QNSlimDayCountRuleAutoIncrement | 0 | Auto increment: Weight loss days automatically increase by +1 each day regardless of whether there is a measurement record for that day (default method) |
| QNSlimDayCountRuleByMeasurement | 1 | Increment by measurement days: Weight loss days only increase by +1 when there is a weight measurement record for that day |
2. QNSlimCurveWeightSelection
Weight curve data selection enumeration
typedef NS_ENUM(NSUInteger, QNSlimCurveWeightSelection) {
QNSlimCurveWeightSelectionLastOfDay = 0, // Last measurement of the day
QNSlimCurveWeightSelectionMinOfDay = 1 // Minimum value of the day
};
Enumeration Value Descriptions
| Enumeration Value | Value | Description |
|---|---|---|
| QNSlimCurveWeightSelectionLastOfDay | 0 | Last measurement of the day: Use the weight value from the last measurement of the day to draw the curve (default method) |
| QNSlimCurveWeightSelectionMinOfDay | 1 | Minimum value of the day: Use the minimum weight value measured during the day to draw the curve |