VLDRecord
@interface VLDRecord : VLDModel
Base class for all objects that represent health records.
-
Timestamp for the measurement set
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSDate *timestamp
-
Timezone information for the measurement set formatted as +/-HH:MM
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *utcOffset
-
The short name of the Validic integration that created the record (validicmobile)
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *source
-
The display name of the Validic integration that created the record (ValidicMobile)
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *sourceName
-
The name of the peripheral manufacturer, for records sourced from HealthKit this will be the name of the application that originally wrote the data to HealthKit.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *originalSource
-
The name of the library technology used to create the record (eg
ValidicMobile Bluetooth
,ValidicMobile Apple Health
)Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *intermediarySource
-
The model number of the peripheral, for records sourced from HealthKit this will be the bundle ID of the application that originally wrote the data to HealthKit.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *sourcePeripheral
-
Date and time when the measurement set was last updated
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSDate *lastUpdated
-
Indicates the data you are receiving was generated using a device, opposed to being manually entered by a end user (Boolean value stored in an NSNumber)
Declaration
Objective-C
@property (nonatomic, strong, nullable) NSNumber *validated
-
Unique identifier of the record
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *recordID
-
Expanded data of the endpoint
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSDictionary *extras
-
Unique ID generated by the orginal source
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *activityID
-
User generated comment
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *comment
-
Associated peripheral used to generate record
Declaration
Objective-C
- (VLDPeripheral *_Nullable)peripheral;
-
Create a new record with source information for a peripheral.
Declaration
Objective-C
+ (instancetype _Nonnull)newRecordFromPeripheral: (VLDPeripheral *_Nonnull)peripheral;
Parameters
peripheral
the peripheral to use for the record’s source.
-
Initializes the appropriate VLDRecord subclass for the specified VLDRecordType.
Declaration
Objective-C
+ (instancetype _Nonnull)newRecordWithType:(id)type;
Parameters
type
the record type.
-
Add a value to the expanded data of the record.
Declaration
Objective-C
- (void)setExtraValue:(id _Nullable)value forKey:(id)key;
Parameters
value
the value to store in the expanded data.
key
the key used to access the value in the expanded data.
-
Add media to the record.
Declaration
Objective-C
- (void)addMedia:(VLDMedia *_Nonnull)media;
Parameters
media
the VLDMedia object to store in the record.
-
This method returns the Type of the record
Declaration
Objective-C
- (id)recordType;
-
Record type name as a string.
Declaration
Objective-C
+ (id)nameForRecordType:(id)type;
Parameters
type
the record type.
-
Converts a weight value from the first specified weight unit to the second specified weight unit.
Declaration
Objective-C
+ (id)convertWeightValue:(id)value fromUnit:(id)from toUnit:(id)to;
Parameters
value
the value being converted.
from
the initial unit of the value.
to
the unit the value will be converted to.
-
Converts a temperature value from the first specified temperature unit to the second specified temperature unit.
Declaration
Objective-C
+ (id)convertTemperatureValue:(id)value fromUnit:(id)from toUnit:(id)to;
Parameters
value
the value being converted.
from
the initial unit of the value.
to
the unit the value will be converted to.
-
Converts a glucose value from the first specified glucose unit to the second specified glucose unit.
Declaration
Objective-C
+ (id)convertGlucoseValue:(id)value fromUnit:(id)from toUnit:(id)to;
Parameters
value
the value being converted.
from
the initial unit of the value.
to
the unit the value will be converted to.
-
Display string for a glucose unit.
Declaration
Objective-C
+ (id)unitStringForGlucoseUnit:(id)unit;
Parameters
unit
the glucose unit.
-
Display string for a weight unit.
Declaration
Objective-C
+ (id)unitStringForWeightUnit:(id)unit;
Parameters
unit
the weight unit.
-
Display string for a temperature unit.
Declaration
Objective-C
+ (id)unitStringForTemperatureUnit:(id)unit;
Parameters
unit
the temperature unit.