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
WFFitMessageRecord Class Reference

Represent a single data record from a fitness device FIT file. More...

#import <WFFitMessageRecord.h>

+ Inheritance diagram for WFFitMessageRecord:
+ Collaboration diagram for WFFitMessageRecord:

Instance Methods

(id) - initWithRecord:
 Initializes the WFFitMessageBase with the contents of the specified FIT record. More...
 
(NSString *) - stringFromTime:
 Returns the specified time as a string formatted in short date time (MM/DD/YY 12:00 AM). More...
 
(NSString *) - stringFromTimestamp
 Returns the timestamp as a string formatted in short date time (MM/DD/YY 12:00 AM). More...
 

Properties

float altitude
 Gets the altitude (in meters). More...
 
float cycleLength
 Gets the cycle length (in meters). More...
 
float distance
 Gets the distance (in meters). More...
 
float grade
 Gets the grade (as a percentage). More...
 
double latitude
 Gets the latitude. More...
 
double longitude
 Gets the longitude. More...
 
FIT_RECORD_MESGpstFitRecord
 Gets a pointer to a FIT_RECORD_MESG structure containing the data for this record. More...
 
float speed
 Gets the speed (in meters per second). More...
 
NSDate * timestamp
 Gets or sets the timestamp of the record. More...
 

Detailed Description

Represent a single data record from a fitness device FIT file.

Method Documentation

- (id) initWithRecord: (void *)  pstRecord

Initializes the WFFitMessageBase with the contents of the specified FIT record.

Parameters
pstRecordA pointer to the FIT record used to initialize this instance.
Returns
This WFFitMessageBase instance.
- (NSString*) stringFromTime: (NSDate *)  time

Returns the specified time as a string formatted in short date time (MM/DD/YY 12:00 AM).

Parameters
timeThe time value to be formatted.
Returns
A formatted date string (MM/DD/YY 12:00 AM).
- (NSString*) stringFromTimestamp

Returns the timestamp as a string formatted in short date time (MM/DD/YY 12:00 AM).

Returns
A formatted date string (MM/DD/YY 12:00 AM).

Property Documentation

- (float) altitude
readnonatomicassign

Gets the altitude (in meters).

- (float) cycleLength
readnonatomicassign

Gets the cycle length (in meters).

- (float) distance
readnonatomicassign

Gets the distance (in meters).

- (float) grade
readnonatomicassign

Gets the grade (as a percentage).

- (double) latitude
readnonatomicassign

Gets the latitude.

- (double) longitude
readnonatomicassign

Gets the longitude.

- (FIT_RECORD_MESG*) pstFitRecord
readnonatomicassign

Gets a pointer to a FIT_RECORD_MESG structure containing the data for this record.

- (float) speed
readnonatomicassign

Gets the speed (in meters per second).

- (NSDate*) timestamp
readnonatomicassigninherited

Gets or sets the timestamp of the record.