You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UserInfoModel.h 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. //
  2. // InetBleSDK
  3. //
  4. // Created by iot_wz on 2018/9/1.
  5. // Copyright © 2018年 iot_wz. All rights reserved.
  6. //
  7. #import <Foundation/Foundation.h>
  8. @class BLEUser;
  9. typedef NS_ENUM(NSInteger, WeightUnitType) {
  10. WeightUnitType_KG = 0,
  11. WeightUnitType_LB,
  12. WeightUnitType_ST,
  13. WeightUnitType_JIN,
  14. };
  15. typedef NS_ENUM(NSInteger, MeasureStatus) {
  16. MeasureStatus_Unstable = 0,
  17. MeasureStatus_Stable,
  18. MeasureStatus_Complete,
  19. MeasureStatus_OfflineHistory,
  20. };
  21. @interface UserInfoModel : NSObject<NSCopying>
  22. //@property (nonatomic, assign) double weightTimeStamp;
  23. @property (nonatomic, copy) NSString *date;
  24. @property (nonatomic, copy) NSString *time;
  25. ///only used for offline history, other it is empty
  26. @property (nonatomic, strong) BLEUser *bleUser;
  27. /// weight
  28. @property (nonatomic, assign) float weightsum;
  29. /// TEMP
  30. @property (nonatomic, assign) float temperature;
  31. /// BMI
  32. @property (nonatomic, assign) float BMI;
  33. /// bfr
  34. @property (nonatomic, assign) float fatRate;
  35. /// rom
  36. @property (nonatomic, assign) float muscle;
  37. /// vwc
  38. @property (nonatomic, assign) float moisture;
  39. /// bm
  40. @property (nonatomic, assign) float boneMass;
  41. /// sfr
  42. @property (nonatomic, assign) float subcutaneousFat;
  43. /// bmr
  44. @property (nonatomic, assign) float BMR;
  45. /// pp
  46. @property (nonatomic, assign) float proteinRate;
  47. /// uvi
  48. @property (nonatomic, assign) float visceralFat;
  49. /// bodyAge
  50. @property (nonatomic, assign) float physicalAge;
  51. /// adc
  52. @property (nonatomic, assign) float newAdc;
  53. /// kg origin point
  54. @property (nonatomic, assign) int weightOriPoint;
  55. /// kg show point
  56. @property (nonatomic, assign) int weightKgPoint;
  57. /// lb show point
  58. @property (nonatomic, assign) int weightLbPoint;
  59. /// st show point
  60. @property (nonatomic, assign) int weightStPoint;
  61. /// kg show graduation
  62. @property (nonatomic, assign) int KGgraduation;
  63. /// lb show graduation
  64. @property (nonatomic, assign) int LBgradution;
  65. //algorithm(so far only used for BM15)
  66. @property (nonatomic, assign) NSInteger Algorithm_number;
  67. /// bm15 broad scale now showing unit
  68. @property (nonatomic, assign) WeightUnitType bm15ScaleUnit;
  69. @property (nonatomic, assign) MeasureStatus measureStatus;
  70. @end
  71. /* For example
  72. date : 2019-12-23;
  73. time : 17:22:28;
  74. bleUser : <BLEUser: 0x2808e0840>;
  75. weightsum : 727;
  76. temperature : 24.5;
  77. BMI : 23.7;
  78. fatRate : 22.2;
  79. muscle : 51;
  80. moisture : 57;
  81. boneMass : 2.8;
  82. subcutaneousFat : 19.9;
  83. BMR : 1549;
  84. proteinRate : 16.6;
  85. visceralFat : 7;
  86. physicalAge : 26;
  87. newAdc : 580;
  88. weightOriPoint : 1;
  89. weightKgPoint : 1;
  90. weightLbPoint : 1;
  91. weightStPoint : 1;
  92. KGgraduation : 1;
  93. LBgradution : 1;
  94. Algorithm_number : 1;
  95. bm15ScaleUnit : 0;
  96. measureStatus : 2;
  97. */