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,
25 } NS_SWIFT_NAME(DeviceSetting.Kind);
26 
27 
32 @interface DeviceSetting : NSObject
33 
34 @property (readonly, nonatomic) DeviceSettingKind kind;
35 @property (readonly, nonatomic, retain) NSNumber* _Nonnull valueIndex;
36 @property (readonly, nonatomic, retain) NSArray<NSString*>* _Nonnull values;
37 @property (readonly, nonatomic) BOOL isReadonly;
39 #ifndef DOXYGEN_SHOULD_SKIP_THIS
40 -(id)init: (NSNumber* _Nonnull) _SKU :(NSString* _Nonnull)_address :(NSString* _Nonnull)_stringKind :(NSNumber* _Nonnull)_index :(NSArray* _Nonnull)_values : (BOOL) _isReadonly;
41 #endif
42 
47 -(BOOL)selectValueWithIndex: (NSNumber* _Nonnull)index error:(NSError *_Nullable *_Nullable)error;
48 
52 -(NSString*)getValue;
53 
54 @end
55 
56 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
DeviceSettingKind kind
Setting kind.
Definition: DeviceSetting.h:34
NSArray< NSString * > *_Nonnull values
Get possible device setting variants.
Definition: DeviceSetting.h:36
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
NSString * getValue()
Get string representation of the currently selected value.
Definition: DeviceSetting.mm:85
Represents setting as its kind and fixed array of possible string values.
Definition: DeviceSetting.h:32
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
BOOL isReadonly
Is this setting readonly, usually means that you can set this setting only before adding...
Definition: DeviceSetting.h:37
DeviceSettingKind
Definition: DeviceSetting.h:12
NSNumber *_Nonnull valueIndex
Get current setting value position in values array.
Definition: DeviceSetting.h:35
Is user an athlete.
Definition: DeviceSetting.h:24