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.

iFreshModel.h 1.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // iFreshModel.h
  3. // iFreshSDK
  4. //
  5. // Created by zhang on 16/9/9.
  6. // Copyright © 2016年 taolei. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface iFreshModel : NSObject
  10. //weight (重量)
  11. @property (nonatomic, copy) NSString *value;
  12. //Data in "g"(以“g”为单位的数据)
  13. @property (nonatomic, assign) NSInteger gValue;
  14. //
  15. @property (nonatomic,copy) NSString *Unit;
  16. /**
  17. * g to lb method
  18. * Weightvalue: the weight string passed in g
  19. * Returned data separated by ":"
  20. */
  21. + (NSString *)gTolb:(NSString *)weightValue;
  22. /**
  23. * g to oz method
  24. * Weightvalue: the weight string passed in g
  25. */
  26. + (NSString *)gTooz:(NSString *)weightVlaue;
  27. /**
  28. * Lb to g method
  29. * Weightvalue: the weight string passed in lb, please pass the ":" separated data
  30. */
  31. + (NSString *)lbTog:(NSString *)weightVlaue;
  32. /**
  33. * Oz to g method
  34. * weightvalue:Incoming weight string in oz
  35. */
  36. + (NSString *)ozTog:(NSString *) weightValue;
  37. /**
  38. * g to kg method
  39. * weightvalue:Incoming weight string in g
  40. */
  41. + (NSString *)gToKg:(NSString *)weightValue;
  42. /**
  43. * g to kg method
  44. * weightvalue:Incoming weight string in g
  45. */
  46. + (NSString *)gToJin:(NSString *)weightValue;
  47. /**
  48. * Kg to g method
  49. * weightvalue:Incoming weight string in kg
  50. */
  51. + (NSString *)kgTog:(NSString *)weightValue;
  52. /**
  53. * Pinch to g method
  54. * weightvalue:Incoming weight string in kilograms
  55. */
  56. + (NSString *)jinTog:(NSString *)weightValue;
  57. /**
  58. * Kg to lb method
  59. * weightvalue:Incoming weight string in kg
  60. */
  61. + (NSString *)kgTolb:(NSString *)weightValue;
  62. @end