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.
64 lines
1.8 KiB
64 lines
1.8 KiB
// |
|
// HeartAndTempModel.h |
|
// LekangGuard |
|
// |
|
// Created by ecell on 2022/11/25. |
|
// |
|
|
|
#import "BaseModel.h" |
|
|
|
NS_ASSUME_NONNULL_BEGIN |
|
|
|
@interface HeartAndTempModel : BaseModel |
|
|
|
/// 最后一次体温/心率 |
|
@property (strong, nonatomic) NSString *lastData; |
|
|
|
/// 最后一次体温/心率时间上传的时间戳 |
|
@property (strong, nonatomic) NSNumber *lastDataTime; |
|
|
|
/// 体温/心率的频率 (30分钟|默认) (60分钟) (90分钟) |
|
@property (strong, nonatomic) NSString *frequency; |
|
|
|
/// 功能是否启用 0:关闭, 1:打开 |
|
@property (strong, nonatomic) NSNumber *switchOn; |
|
|
|
/// 上限 |
|
@property (strong, nonatomic) NSString *upper; |
|
|
|
/// 下限 |
|
@property (strong, nonatomic) NSString *lower; |
|
|
|
/// 心率/体温记录信息 (图表显示的数组) |
|
@property (strong, nonatomic) NSDictionary *dataListDict; |
|
|
|
/// 类型:1:心率配置,2:体温配置 |
|
@property (nonatomic ,assign) NSInteger type; |
|
|
|
|
|
/// 查询心率/体温记录和配置信息 |
|
/// @param type 0:心率, 1:体温 |
|
/// @param dateTime 日期 格式: 2020-03-25 |
|
+ (void)getHeartAndTempDataWithType:(NSInteger)type |
|
date:(NSString*)dateTime |
|
success:(void (^)(HeartAndTempModel *model))success |
|
failure:(void (^)(NSError *error))failure; |
|
|
|
|
|
|
|
|
|
/// 开始测量心率/体温 |
|
/// @param type 1:心率, 2:体温 |
|
/// @param cmd 1:开关,2:频率 |
|
/// @param obj 开关状态或频率次数 |
|
/// @param success 成功回调 |
|
/// @param failure 失败回调 |
|
+ (void)postHeartAndTempDataWithType:(NSInteger)type |
|
cmd:(NSInteger)cmd |
|
obj:(NSString *)obj |
|
success:(void (^)(id responseObject))success |
|
failure:(void (^)(NSError *error))failure; |
|
|
|
@end |
|
|
|
NS_ASSUME_NONNULL_END
|
|
|