iOS AILinkBleSDK - 蓝牙SDK
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

OEMBfsCalculateSDK.h 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // FRK_fatScalesSDK.h
  3. // FRK_fatScalesSDK
  4. //
  5. // Created by zhang on 17/2/24.
  6. // Copyright © 2017年 taolei. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSInteger, OEMBfsUserSex) {
  10. OEMBfsUserSex_Female = 0,//2,
  11. OEMBfsUserSex_Male = 1,
  12. };
  13. @interface OEMBfsCalculateItem : NSObject
  14. /**
  15. * 标准体重 standardWeight
  16. */
  17. @property (nonatomic, assign) double standardWeight;
  18. /**
  19. * 体重控制量 weightControl
  20. */
  21. @property (nonatomic, assign) double weightControl;
  22. /**
  23. * 脂肪量 fatMass
  24. */
  25. @property (nonatomic, assign) double fatMass;
  26. /**
  27. * 去脂体重 weightWithoutFat
  28. */
  29. @property (nonatomic, assign) double weightWithoutFat;
  30. /**
  31. * 肌肉量 muscleMass
  32. */
  33. @property (nonatomic, assign) double muscleMass;
  34. /**
  35. * 蛋白量 proteinMass
  36. */
  37. @property (nonatomic, assign) double proteinMass;
  38. /**
  39. * 肥胖等级 fatlevel
  40. * 1.标准 standard
  41. * 2.偏瘦 thin
  42. * 3.偏重 over weight
  43. * 4.体重不足 insufficient
  44. * 5.超重 Severely overweight
  45. */
  46. @property (nonatomic, assign) NSInteger fatlevel;
  47. /** For example
  48. (double) _standardWeight = 66.5
  49. (double) _weightControl = 6.1999998092651367
  50. (double) _fatMass = 16.100000381469727
  51. (double) _weightWithoutFat = 56.599998474121094
  52. (double) _muscleMass = 37.099998474121094
  53. (double) _proteinMass = 12.100000381469727
  54. (NSInteger) _fatlevel = 1
  55. */
  56. @end
  57. @interface OEMBfsCalculateSDK : NSObject
  58. /**
  59. * 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个项目
  60. *@param sex
  61. * 性别: 男:1 女 2
  62. * @param height
  63. * 身高:1~270(CM)
  64. * @param weight
  65. * 体重:1~220(KG)
  66. * @param bfr
  67. * 体脂率 43.6
  68. * @param rom
  69. * 肌肉率 55.2
  70. * @param pp
  71. * 蛋白率 25.9
  72. * @return BfsCalculateItem
  73. */
  74. + (OEMBfsCalculateItem *)getBodyfatItemWithSex:(OEMBfsUserSex)sex height:(NSInteger)height weight:(double)weight bfr:(NSString *)bfr rom:(NSString *)rom pp:(NSString *)pp;
  75. /**
  76. * 获取标准体重(单位:kg)
  77. */
  78. + (double) getStandardWeight:(NSInteger)sex andheight:(NSInteger)height;
  79. @end