1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
|
//
// BPLoopMeasureSettingModel.h
// iHealthSDKStatic
//
// Created by Realank on 2017/9/27.
// Copyright © 2017年 ihealthSDK. All rights reserved.
//
#import <Foundation/Foundation.h>
/**
ABPM loop remeasure method
- BPLoopRemeasureNO: don't remeasure
- BPLoopRemeasure90Sec: 90 seconds remeasure
- BPLoopRemeasure90Sec10Min: 90 seconds and 10 minutes remeasure
*/
typedef NS_ENUM(NSUInteger, BPLoopRemeasureMethod) {
BPLoopRemeasureNO = 0x00,
BPLoopRemeasure90Sec = 0x01,
BPLoopRemeasure90Sec10Min = 0x03,
};
/**
ABPM loop measure time setting model
*/
@interface BPLoopMeasureTimeSetting : NSObject
@property (nonatomic, assign) NSUInteger hour;
@property (nonatomic, assign) NSUInteger min;
@property (nonatomic, assign) NSUInteger measureIntervalInMin;
@property (nonatomic, assign) BOOL before5MinViberateAlert;
@property (nonatomic, assign) BOOL before5MinSoundAlert;
@property (nonatomic, assign) BOOL before30SecViberateAlert;
@property (nonatomic, assign) BOOL before30SecSoundAlert;
@property (nonatomic, assign) BPLoopRemeasureMethod remeasureMethods;
+ (instancetype) modelWithHour:(NSUInteger)hour
min:(NSUInteger)min
measureIntervalInMin:(NSUInteger)measureIntervalInMin
before5MinViberateAlert:(BOOL)before5MinViberateAlert
before5MinSoundAlert:(BOOL)before5MinSoundAlert
before30SecViberateAlert:(BOOL)before30SecViberateAlert
before30SecSoundAlert:(BOOL)before30SecSoundAlert
remeasureMethod:(BPLoopRemeasureMethod)remeasureMethod;
+(instancetype) alloc __attribute__((unavailable("alloc not available, call sharedInstance instead")));
-(instancetype) init __attribute__((unavailable("init not available, call sharedInstance instead")));
+(instancetype) new __attribute__((unavailable("new not available, call sharedInstance instead")));
@end
/**
ABPM loop measure setting model
*/
@interface BPLoopMeasureSettingModel : NSObject
@property (nonatomic, assign) BOOL isTakeMedicine;
@property (nonatomic, assign) uint8_t measureHours;
@property (nonatomic, strong) BPLoopMeasureTimeSetting* morningTimeSetting;
@property (nonatomic, strong) BPLoopMeasureTimeSetting* nightTimeSetting;
@property (nonatomic, strong) BPLoopMeasureTimeSetting* noonSleepTimeSetting;
@property (nonatomic, strong) BPLoopMeasureTimeSetting* noonWakeupTimeSetting;
+ (instancetype)modelWithTakeMedicine:(BOOL)isTakeMedicine
measureHours:(uint8_t)measureHours
morningTimeSetting:(BPLoopMeasureTimeSetting*)morningTimeSetting
nightTimeSetting:(BPLoopMeasureTimeSetting*)nightTimeSetting
noonSleepTimeSetting:(BPLoopMeasureTimeSetting*)noonSleepTimeSetting
noonWakeupTimeSetting:(BPLoopMeasureTimeSetting*)noonWakeupTimeSetting;
+(instancetype) alloc __attribute__((unavailable("alloc not available, call sharedInstance instead")));
-(instancetype) init __attribute__((unavailable("init not available, call sharedInstance instead")));
+(instancetype) new __attribute__((unavailable("new not available, call sharedInstance instead")));
@end
/**
ABPM loop measure status
- BPLoopMeasureStateNoScheme: don't have scheme
- BPLoopMeasureStateSchemeUncompleted: scheme not completed
- BPLoopMeasureStateSchemeCompleted: scheme has been completed
*/
typedef NS_ENUM(NSUInteger, BPLoopMeasureStatus) {
BPLoopMeasureStateNoScheme,
BPLoopMeasureStateSchemeUncompleted,
BPLoopMeasureStateSchemeCompleted,
};
/**
ABPM loop measure setting result model
*/
@interface BPLoopMeasureSettingResultModel : BPLoopMeasureSettingModel
@property (nonatomic, assign) BPLoopMeasureStatus loopMeasureStatus;
@property (nonatomic, strong) NSDate* realStartDate;
@property (nonatomic, assign) NSInteger realStartDateTimeZoneInMin;
+ (instancetype)modelWithLoopMeasureStatus:(BPLoopMeasureStatus)loopMeasureStatus
TakeMedicine:(BOOL)isTakeMedicine
measureHours:(uint8_t)measureHours
realStartDate:(NSDate*)realStartDate
realStartDateTimeZoneInMin:(NSInteger)realStartDateTimeZoneInMin
morningTimeSetting:(BPLoopMeasureTimeSetting*)morningTimeSetting
nightTimeSetting:(BPLoopMeasureTimeSetting*)nightTimeSetting
noonSleepTimeSetting:(BPLoopMeasureTimeSetting*)noonSleepTimeSetting
noonWakeupTimeSetting:(BPLoopMeasureTimeSetting*)noonWakeupTimeSetting;
+(instancetype) alloc __attribute__((unavailable("alloc not available, call sharedInstance instead")));
-(instancetype) init __attribute__((unavailable("init not available, call sharedInstance instead")));
+(instancetype) new __attribute__((unavailable("new not available, call sharedInstance instead")));
@end
|