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.

BfsCalculateSDK.h 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. //
  2. // BfsCalculateSDK
  3. // Created by steven wu on 2019/6/25.
  4. //
  5. #import <Foundation/Foundation.h>
  6. typedef NS_ENUM(NSInteger, BfsUserSex) {
  7. BfsUserSex_Male = 1,
  8. BfsUserSex_Female = 2,
  9. };
  10. @interface BfsCalculateItem : NSObject
  11. /**
  12. * 标准体重 standardWeight
  13. */
  14. @property (nonatomic, assign) double standardWeight;
  15. /**
  16. * 体重控制量 weightControl
  17. */
  18. @property (nonatomic, assign) double weightControl;
  19. /**
  20. * 脂肪量 fatMass
  21. */
  22. @property (nonatomic, assign) double fatMass;
  23. /**
  24. * 去脂体重 weightWithoutFat
  25. */
  26. @property (nonatomic, assign) double weightWithoutFat;
  27. /**
  28. * 肌肉量 muscleMass
  29. */
  30. @property (nonatomic, assign) double muscleMass;
  31. /**
  32. * 蛋白量 proteinMass
  33. */
  34. @property (nonatomic, assign) double proteinMass;
  35. /**
  36. * 肥胖等级 fatlevel
  37. * 1.标准 standard
  38. * 2.偏瘦 thin
  39. * 3.偏重 over weight
  40. * 4.体重不足 insufficient
  41. * 5.超重 Severely overweight
  42. */
  43. @property (nonatomic, assign) NSInteger fatlevel;
  44. /** For example
  45. (double) _standardWeight = 66.5
  46. (double) _weightControl = 6.1999998092651367
  47. (double) _fatMass = 16.100000381469727
  48. (double) _weightWithoutFat = 56.599998474121094
  49. (double) _muscleMass = 37.099998474121094
  50. (double) _proteinMass = 12.100000381469727
  51. (NSInteger) _fatlevel = 1
  52. */
  53. @end
  54. @interface BfsCalculateSDK : NSObject
  55. /**
  56. * According to the bfr / rom / pp in the basic parameters returned by the scale, calculate 7 additional items that the App needs to display 根据秤返回的基本参数中的bfr/rom/pp,计算出App需要额外显示的7个项目
  57. *@param sex
  58. * 性别: 男:1 女 2
  59. * @param height
  60. * 身高:1~270(CM)
  61. * @param weight
  62. * 体重:1~220(KG)
  63. * @param bfr
  64. * 体脂率 43.6
  65. * @param rom
  66. * 肌肉率 55.2
  67. * @param pp
  68. * 蛋白率 25.9
  69. * @return BfsCalculateItem
  70. */
  71. + (BfsCalculateItem *)getBodyfatItemWithSex:(BfsUserSex)sex height:(NSInteger)height weight:(double)weight bfr:(NSString *)bfr rom:(NSString *)rom pp:(NSString *)pp;
  72. @end