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

Represents a single activity record from a fitness device FIT file. More...

#import <WFFitMessageActivity.h>

+ Inheritance diagram for WFFitMessageActivity:
+ Collaboration diagram for WFFitMessageActivity:

Instance Methods

(id) - initWithRecord:
 Initializes the WFFitMessageBase with the contents of the specified FIT record. More...
 
(NSString *) - stringFromLocalTimestamp
 Returns the localized timestamp as a string formatted in short date time (MM/DD/YY 12:00 AM). 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

NSDate * localTimestamp
 Gets the localized timestamp for the record. More...
 
FIT_ACTIVITY_MESGpstActivity
 Gets a pointer to the FIT_ACTIVITY_MESG structure containing the data for this record. More...
 
NSDate * timestamp
 Gets or sets the timestamp of the record. More...
 

Detailed Description

Represents a single activity 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*) stringFromLocalTimestamp

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

Note
This method is device specific, and may not return a valid time.
Returns
The formatted date string (MM/DD/YY 12:00 AM).
- (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

- (NSDate*) localTimestamp
readnonatomicassign

Gets the localized timestamp for the record.

Note
This property is device specific, and may not contain a valid time.
- (FIT_ACTIVITY_MESG*) pstActivity
readnonatomicassign

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

- (NSDate*) timestamp
readnonatomicassigninherited

Gets or sets the timestamp of the record.