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.
56 lines
1.6 KiB
56 lines
1.6 KiB
1 year ago
|
//
|
||
|
// HeartAndTempModel.h
|
||
|
// tongxin
|
||
|
//
|
||
|
// Created by Apple on 2020/4/9.
|
||
|
// Copyright © 2020 xTT. All rights reserved.
|
||
|
//
|
||
|
|
||
|
#import "baseModel.h"
|
||
|
|
||
|
NS_ASSUME_NONNULL_BEGIN
|
||
|
|
||
|
@interface HeartAndTempModel : baseModel
|
||
|
|
||
|
/// 心率/体温的数据
|
||
|
@property (strong, nonatomic) NSString *lastData;
|
||
|
/// 心率/体温的数据 更新时间
|
||
|
@property (strong, nonatomic) NSNumber *lastDataTime;
|
||
|
/// 频率 次/分 || ℃
|
||
|
@property (strong, nonatomic) NSString *frequency;
|
||
|
|
||
|
/// 开关状态
|
||
|
@property (strong, nonatomic) NSNumber *switchStatus;
|
||
|
|
||
|
/// 上限
|
||
|
@property (strong, nonatomic) NSString *upper;
|
||
|
/// 下限
|
||
|
@property (strong, nonatomic) NSString *lower;
|
||
|
/// 图表显示的数组
|
||
|
@property (strong, nonatomic) NSDictionary *dataListDict;
|
||
|
|
||
|
|
||
|
#pragma mark ---设备心率/体温 接口---
|
||
|
|
||
|
/// 根据日期获取数据接口
|
||
|
/// @param type 0:心率, 1:体温
|
||
|
/// @param dateTime 日期 格式: 2020-03-25
|
||
|
+ (void)getHeartAndTempDataWithType:(int)type
|
||
|
date:(NSString*)dateTime
|
||
|
success:(void (^)(HeartAndTempModel *model))success
|
||
|
failure:(void (^)(NSError *error))failure;
|
||
|
|
||
|
|
||
|
/// 设置 心率/体温 数据的接口
|
||
|
/// @param type 0:心率, 1:体温
|
||
|
/// @param params 参数 switch* : [int] 功能的开关 0: 关闭 ,1: 打开 frequency* : [str] 频率 /分钟 | 当-1时为立刻查询一次
|
||
|
+ (void)postHeartAndTempDataWithType:(int)type
|
||
|
params:(NSArray*)params
|
||
|
success:(void (^)(id responseObject))success
|
||
|
failure:(void (^)(NSError *error))failure;
|
||
|
|
||
|
|
||
|
@end
|
||
|
|
||
|
NS_ASSUME_NONNULL_END
|