Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFFitActivityFileData Class Reference

Represents the data contents of a fitness device FIT file. More...

#import <WFFitActivityFileData.h>

+ Inheritance diagram for WFFitActivityFileData:
+ Collaboration diagram for WFFitActivityFileData:

Instance Methods

(void) - addActivityRecord:
 Adds the specified WFFitActivityRecord instance to the activity record collection for the file. More...
 
(void) - addDataRecord:
 Adds the specified WFFitDataRecord instance to the data record collection for the file. More...
 
(void) - addEventRecord:
 Adds the specified WFFitEventRecord instance to the event record collection for the file. More...
 
(void) - addLapRecord:
 Adds the specified WFFitLapRecord instance to the lap record collection for the file. More...
 
(void) - addSessionRecord:
 Adds the specified WFFitSessionRecord instance to the session record collection for the file. More...
 
(void) - addWorkoutRecord:
 Adds the specified WFFitWorkoutRecord instance to the workout record collection for the file. More...
 
(BOOL- decompressSpeedDistance
 Decompresses the compressed speed and distance data. More...
 

Properties

NSArray * activityRecords
 Gets a collection of WFFitActivityRecord instances for the file. More...
 
NSArray * dataRecords
 Gets a collection of WFFitDataRecord instances for the file. More...
 
WFFitMessageDeviceInfodeviceInfo
 Gets the device info for the device which created the FIT file. More...
 
NSArray * eventRecords
 Gets a collection of WFFitEventRecord instances for the file. More...
 
WFFitMesgFileIdfileId
 Gets the WFFitMesgFileId instance containing meta-data information about the file. More...
 
NSArray * lapRecords
 Gets a collection of WFFitLapRecord instances for the file. More...
 
NSArray * sessionRecords
 Gets a collection of WFFitSessionRecord instances for the file. More...
 
NSArray * workoutRecords
 Gets a collection of WFFitWorkoutRecord instances for the file. More...
 

Detailed Description

Represents the data contents of a fitness device FIT file.

Method Documentation

- (void) addActivityRecord: (WFFitMessageActivity *)  record

Adds the specified WFFitActivityRecord instance to the activity record collection for the file.

Parameters
recordThe WFFitActivityRecord to be added.
- (void) addDataRecord: (WFFitMessageRecord *)  record

Adds the specified WFFitDataRecord instance to the data record collection for the file.

Parameters
recordThe WFFitDataRecord to be added.
- (void) addEventRecord: (WFFitMessageEvent *)  record

Adds the specified WFFitEventRecord instance to the event record collection for the file.

Parameters
recordThe WFFitEventRecord to be added.
- (void) addLapRecord: (WFFitMessageLap *)  record

Adds the specified WFFitLapRecord instance to the lap record collection for the file.

Parameters
recordThe WFFitLapRecord to be added.
- (void) addSessionRecord: (WFFitMessageSession *)  record

Adds the specified WFFitSessionRecord instance to the session record collection for the file.

Parameters
recordThe WFFitSessionRecord to be added.
- (void) addWorkoutRecord: (WFFitMesgWorkout *)  record

Adds the specified WFFitWorkoutRecord instance to the workout record collection for the file.

Parameters
recordThe WFFitWorkoutRecord to be added.
- (BOOL) decompressSpeedDistance

Decompresses the compressed speed and distance data.

If the FIT file from which this WFFitActivityFileData was derived uses the compressed speed and distance format, this method will decompress the speed and distance values into the speed and distance fields for all data records.

Returns
TRUE if decompression was performed, otherwise FALSE.

Property Documentation

- (NSArray*) activityRecords
readnonatomicassign

Gets a collection of WFFitActivityRecord instances for the file.

- (NSArray*) dataRecords
readnonatomicassign

Gets a collection of WFFitDataRecord instances for the file.

- (WFFitMessageDeviceInfo*) deviceInfo
readwritenonatomicretain

Gets the device info for the device which created the FIT file.

- (NSArray*) eventRecords
readnonatomicassign

Gets a collection of WFFitEventRecord instances for the file.

- (WFFitMesgFileId*) fileId
readwritenonatomicretain

Gets the WFFitMesgFileId instance containing meta-data information about the file.

- (NSArray*) lapRecords
readnonatomicassign

Gets a collection of WFFitLapRecord instances for the file.

- (NSArray*) sessionRecords
readnonatomicassign

Gets a collection of WFFitSessionRecord instances for the file.

- (NSArray*) workoutRecords
readnonatomicassign

Gets a collection of WFFitWorkoutRecord instances for the file.