MedM DeviceKit
DeviceInfo.h
Go to the documentation of this file.
1 //
2 // Device.h
3 // MedMDeviceKit
4 //
5 // Copyright (C) 2017 MedM. All rights reserved.
6 //
7 
8 #ifndef DeviceInfo_h
9 #define DeviceInfo_h
10 
11 #import "MeasurementType.h"
12 #import "DeviceSetting.h"
13 
17 @interface DeviceInfo : NSObject
18 
19 @property (readonly, nonatomic, retain) NSNumber* _Nonnull SKU;
20 @property (readonly, nonatomic, retain) NSString* _Nonnull name;
21 @property (readonly, nonatomic, retain) NSString* _Nonnull address;
22 @property (readonly, nonatomic, retain) NSString* _Nonnull modelName;
23 @property (readonly, nonatomic, retain) NSString* _Nonnull manufacturer;
24 @property (readonly, nonatomic, retain) NSNumber* _Nullable RSSI;
25 @property (readonly, nonatomic, retain) NSString* _Nullable firmware;
26 @property (readonly, nonatomic, retain) NSString* _Nullable hardware;
27 @property (readonly, nonatomic, retain) NSString* _Nullable model;
28 @property (readonly, nonatomic, retain) NSString* _Nullable serial;
30 @property (readonly, nonatomic, retain) NSString* _Nullable dbTitle;
31 @property (readonly, nonatomic, retain) NSNumber* _Nullable batteryLevel;
32 @property (readonly, nonatomic, retain) NSDate* _Nullable batteryLastSyncTime;
33 @property (readonly, nonatomic, retain) NSArray<MeasurementTypeObj *>* _Nonnull measurementTypes;
34 @property (readonly, nonatomic) BOOL awaitsAdding;
35 @property (readonly, nonatomic, retain) NSArray<DeviceSetting *>* _Nonnull settings;
37 #ifndef DOXYGEN_SHOULD_SKIP_THIS
38 -(id _Nonnull)initWithRSSI:(NSNumber* _Nonnull) _SKU : (NSString*_Nonnull)_name : (NSString* _Nonnull)_address : (NSNumber* _Nonnull) _RSSI;
39 -(id _Nonnull)initWithSKU:(NSNumber* _Nonnull) _SKU : (NSString* _Nonnull)_name : (NSString* _Nonnull)_address;
40 -(id _Nonnull)initWithAddingStatus:(NSNumber* _Nonnull) _SKU : (NSString* _Nonnull)_name : (NSString* _Nonnull)_address : (NSString* _Nonnull) _serial : (BOOL)_awaitsAdding;
41 -(id _Nonnull)initWithDetails:(NSNumber* _Nonnull) _SKU : (NSString* _Nonnull)_name : (NSString* _Nonnull)_address : (NSString* _Nonnull) _firmware : (NSString* _Nonnull) _hardware : (NSString* _Nonnull) _model : (NSString* _Nonnull) _serial;
42 -(id _Nonnull)initWithBatteryLevel:(NSNumber* _Nonnull) _SKU : (NSString* _Nonnull)_name : (NSString* _Nonnull)_address : (NSNumber* _Nonnull)_batteryLevel : (NSDate* _Nonnull)_batteryLastSyncTime : (NSString* _Nonnull) _serial : (BOOL)_awaitsAdding;
43 #endif
44 
48 -(DeviceSetting*_Nullable)getSetting:(DeviceSettingKind)kind;
49 @end
50 
51 #endif /* Device_h */
NSNumber *_Nonnull SKU
MedM SKU of the device.
Definition: DeviceInfo.h:19
Device description.
Definition: DeviceInfo.h:17
NSNumber *_Nullable batteryLevel
Last known battery level in percents.
Definition: DeviceInfo.h:31
NSString *_Nonnull modelName
User friendly name of the device.
Definition: DeviceInfo.h:22
NSString *_Nonnull name
Bluetooth name of the device.
Definition: DeviceInfo.h:20
NSString *_Nullable serial
Device serial number received from the device or passed as postponed adding filter.
Definition: DeviceInfo.h:28
NSString *_Nonnull manufacturer
Device manufacturer.
Definition: DeviceInfo.h:23
NSString *_Nullable model
Device model received from the device.
Definition: DeviceInfo.h:27
NSString *_Nonnull address
Bluetooth address of the device.
Definition: DeviceInfo.h:21
Represents setting as its kind and fixed array of possible string values.
Definition: DeviceSetting.h:33
NSNumber *_Nullable RSSI
Bluetooth RSSI.
Definition: DeviceInfo.h:24
NSString *_Nullable hardware
Device hardware version received from the device.
Definition: DeviceInfo.h:26
NSDate *_Nullable batteryLastSyncTime
Last time when we received info about battery level from this device.
Definition: DeviceInfo.h:32
NSString *_Nullable dbTitle
Technical device name.
Definition: DeviceInfo.h:30
NSArray< MeasurementTypeObj * > *_Nonnull measurementTypes
List of measurement types for the device.
Definition: DeviceInfo.h:33
BOOL awaitsAdding
Device was added via postponed adding and awaits actual communication with the device.
Definition: DeviceInfo.h:34
DeviceSettingKind
Definition: DeviceSetting.h:12
NSArray< DeviceSetting * > *_Nonnull settings
Get supported device settings.
Definition: DeviceInfo.h:35
NSString *_Nullable firmware
Device firmware version received from the device.
Definition: DeviceInfo.h:25