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