MedM DeviceKit
DeviceSetting.h
Go to the documentation of this file.
1 //
2 // DeviceSetting.h
3 // MedMDeviceKit
4 //
5 // Copyright © 2020 MedM. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 
10 NS_ASSUME_NONNULL_BEGIN
11 
12 typedef NS_ENUM(int, DeviceSettingKind) {
17  UserNumber = 3,
26 } NS_SWIFT_NAME(DeviceSetting.Kind);
27 
28 
33 @interface DeviceSetting : NSObject
34 {
35 @private
36  int m_sku;
37  NSString* m_address;
38  NSString* m_stringValue;
39 }
40 
41 @property (readonly, nonatomic) DeviceSettingKind kind;
42 @property (readonly, nonatomic, retain) NSNumber* _Nonnull valueIndex;
43 @property (readonly, nonatomic, retain) NSArray<NSString*>* _Nonnull values;
44 @property (readonly, nonatomic) BOOL isReadonly;
46 #ifndef DOXYGEN_SHOULD_SKIP_THIS
47 -(id)init: (NSNumber* _Nonnull) _SKU :(NSString* _Nonnull)_address :(NSString* _Nonnull)_stringKind :(NSNumber* _Nonnull)_index :(NSArray* _Nonnull)_values : (BOOL) _isReadonly;
48 -(id)init: (NSNumber* _Nonnull) _SKU :(NSString* _Nonnull)_address :(NSString* _Nonnull)_stringKind :(NSString* _Nonnull)_value :(BOOL) _isReadonly;
49 #endif
50 
55 -(BOOL)selectValueWithIndex: (NSNumber* _Nonnull)index error:(NSError *_Nullable *_Nullable)error;
56 
60 -(NSString*)getValue;
61 
68 -(BOOL)setValue: (NSString* _Nonnull)value error:(NSError *_Nullable *_Nullable)error;
69 
70 @end
71 
72 NS_ASSUME_NONNULL_END
Erase all data from the device on adding or not.
Definition: DeviceSetting.h:18
Measurement length.
Definition: DeviceSetting.h:16
Device manufacturer.
Definition: DeviceSetting.h:23
Turn HR monitoring on or off.
Definition: DeviceSetting.h:19
Encryption key, hex string without spaces.
Definition: DeviceSetting.h:25
Receive stream data or spot values.
Definition: DeviceSetting.h:14
User number on the device.
Definition: DeviceSetting.h:17
Spirometry test type.
Definition: DeviceSetting.h:21
Receive history data or realtime data.
Definition: DeviceSetting.h:15
Represents setting as its kind and fixed array of possible string values.
Definition: DeviceSetting.h:33
Keep history on the device or delete it after receiving.
Definition: DeviceSetting.h:22
Something went wrong, shouldn&#39;t happen.
Definition: DeviceSetting.h:13
Spirometry turbine type.
Definition: DeviceSetting.h:20
DeviceSettingKind
Definition: DeviceSetting.h:12
Is user an athlete.
Definition: DeviceSetting.h:24