Files
GSFV2/lib/model/data/ICWeightData.dart

300 lines
7.2 KiB
Dart
Raw Permalink Normal View History

2024-04-10 12:51:20 +05:30
import 'package:icdevicemanager_flutter/model/converter/ICWeightCenterDataConverter.dart';
import 'package:icdevicemanager_flutter/model/data/ICWeightExtData.dart';
import 'package:json_annotation/json_annotation.dart';
import '../other/ICConstant.dart';
part 'ICWeightData.g.dart';
@JsonSerializable()
class ICWeightData {
/**
ID,:0
*/
int? userId = 0;
/**
,weight有效
*/
bool isStabilized = false;
/**
(g)
*/
int weight_g = 0;
/**
(kg)
*/
double weight_kg = 0.0;
/**
()
*/
double weight_lb = 0.0;
/**
(st:lb):weight_st_lb一起使用
*/
int weight_st = 0;
/**
(st:lb):weight_st一起使用
*/
double weight_st_lb = 0.0;
/**
kg体重小数点位数,:weight_kg=70.12,precision=2weight_kg=71.5,precision_kg=1
*/
int precision_kg = 1;
/**
lb体重小数点位数,:weight_lb=70.12,precision=2weight_lb=71.5,precision_lb=1
*/
int precision_lb = 1;
/**
st:lb体重小数点位数
*/
int precision_st_lb = 1;
/**
kg分度值
*/
int kg_scale_division = 0;
/**
lb分度值
*/
int lb_scale_division = 0;
/**
*/
double temperature = 0.0;
/**
*/
bool isSupportHR = false;
/**
*/
int hr = 0;
/**
*/
int time = 0;
/**
BMI(:0.1)
*/
double bmi = 0.0;
/**
(, :0.1)
*/
double bodyFatPercent = 0.0;
/**
(, :0.1)
*/
double subcutaneousFatPercent = 0.0;
/**
(:0.1)
*/
double visceralFat = 0.0;
/**
(, :0.1)
*/
double musclePercent = 0.0;
/**
(:kcal)
*/
int bmr = 0;
/**
(:kg,:0.1)
*/
double boneMass = 0.0;
/**
(,:0.1)
*/
double moisturePercent = 0.0;
/**
*/
double physicalAge = 0.0;
/**
(,:0.1)
*/
double proteinPercent = 0.0;
/**
(,:0.1)
*/
double smPercent = 0.0;
/**
48
*/
int electrode = 4;
/**
*/
double bodyScore = 0.0;
/**
*/
int bodyType = 0;
/**
*/
double targetWeight = 0.0;
/**
*/
double bfmControl = 0.0;
/**
*/
double ffmControl = 0.0;
/**
*/
double weightControl = 0.0;
/**
*/
double weightStandard = 0.0;
/**
*/
double bfmStandard = 0.0;
/**
BMI
*/
double bmiStandard = 0.0;
/**
*/
double smmStandard = 0.0;
/**
*/
double ffmStandard = 0.0;
double bfpStandard = 0.0; // 标准脂肪率
int bmrStandard = 0; // 标准BMR
double bmiMax = 0.0;
double bmiMin = 0.0;
double bfmMax = 0.0;
double bfmMin = 0.0;
double bfpMax = 0.0;
double bfpMin = 0.0;
double weightMax = 0.0;
double weightMin = 0.0;
double smmMax = 0.0;
double smmMin = 0.0;
double boneMax = 0.0;
double boneMin = 0.0;
int bmrMax = 0;
int bmrMin = 0;
double waterMassMax = 0.0;
double waterMassMin = 0.0;
double proteinMassMax = 0.0;
double proteinMassMin = 0.0;
double muscleMassMax = 0.0;
double muscleMassMin = 0.0;
/**
*/
double smi = 0.0;
/**
*/
int obesityDegree = 0;
int state = 0;
/**
(8)(4)(:ohm),0
*/
double imp = 0.0;
/**
(8)(:ohm),0
*/
double imp2 = 0.0;
/**
(8)(:ohm),0
*/
double imp3 = 0.0;
/**
(8)(:ohm),0
*/
double imp4 = 0.0;
/**
(8)(:ohm),:0
*/
double imp5 = 0.0;
/**
(8)
*/
@ICWeightCenterDataConverter()
ICWeightExtData? extData;
/**
(0:sdk1:2:app计算)
*/
int data_calc_type = 0;
/**
*/
ICBFAType? bfa_type = ICBFAType.ICBFATypeUnknown;
int impendenceType = 0;
int impendenceProperty = 0;
List<double>? impendences;
ICWeightData();
factory ICWeightData.fromJson(Map<String, dynamic> json) =>
_$ICWeightDataFromJson(json);
Map<String, dynamic> toJson() => _$ICWeightDataToJson(this);
@override
String toString() {
return 'ICWeightData{userId: $userId, isStabilized: $isStabilized, weight_g: $weight_g, weight_kg: $weight_kg, weight_lb: $weight_lb, weight_st: $weight_st, weight_st_lb: $weight_st_lb, precision_kg: $precision_kg, precision_lb: $precision_lb, precision_st_lb: $precision_st_lb, kg_scale_division: $kg_scale_division, lb_scale_division: $lb_scale_division, temperature: $temperature, isSupportHR: $isSupportHR, hr: $hr, time: $time, bmi: $bmi, bodyFatPercent: $bodyFatPercent, subcutaneousFatPercent: $subcutaneousFatPercent, visceralFat: $visceralFat, musclePercent: $musclePercent, bmr: $bmr, boneMass: $boneMass, moisturePercent: $moisturePercent, physicalAge: $physicalAge, proteinPercent: $proteinPercent, smPercent: $smPercent, electrode: $electrode, bodyScore: $bodyScore, bodyType: $bodyType, targetWeight: $targetWeight, bfmControl: $bfmControl, ffmControl: $ffmControl, weightControl: $weightControl, weightStandard: $weightStandard, bfmStandard: $bfmStandard, bmiStandard: $bmiStandard, smmStandard: $smmStandard, ffmStandard: $ffmStandard, bfpStandard: $bfpStandard, bmrStandard: $bmrStandard, bmiMax: $bmiMax, bmiMin: $bmiMin, bfmMax: $bfmMax, bfmMin: $bfmMin, bfpMax: $bfpMax, bfpMin: $bfpMin, weightMax: $weightMax, weightMin: $weightMin, smmMax: $smmMax, smmMin: $smmMin, boneMax: $boneMax, boneMin: $boneMin, bmrMax: $bmrMax, bmrMin: $bmrMin, waterMassMax: $waterMassMax, waterMassMin: $waterMassMin, proteinMassMax: $proteinMassMax, proteinMassMin: $proteinMassMin, muscleMassMax: $muscleMassMax, muscleMassMin: $muscleMassMin, smi: $smi, obesityDegree: $obesityDegree, state: $state, imp: $imp, imp2: $imp2, imp3: $imp3, imp4: $imp4, imp5: $imp5, extData: $extData, data_calc_type: $data_calc_type, bfa_type: $bfa_type, impendenceType: $impendenceType, impendenceProperty: $impendenceProperty, impendences: $impendences}';
}
}