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

Represents a session record from a fitness device FIT file. More...

#import <WFFitMessageSession.h>

+ Inheritance diagram for WFFitMessageSession:
+ Collaboration diagram for WFFitMessageSession:

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 avgSpeed
 Gets the average speed for the session (in meters per second). More...
 
float maxSpeed
 Gets the max speed for the session (in meters per second). More...
 
double necLatitude
 Gets the North-East-Corner latitude (bounding box). More...
 
double necLongitude
 Gets the North-East-Corner longitude (bounding box). More...
 
FIT_SESSION_MESGpstSession
 Gets a pointer to a FIT_SESSION_MESG structure containing the data for this record. More...
 
double startLatitude
 Gets the starting latitude for the session. More...
 
double startLongitude
 Gets the starting longitude for the session. More...
 
NSDate * startTime
 Gets the start time for the session (represented as an NSDate). More...
 
double swcLatitude
 Gets the South-West-Corner latitude (bounding box). More...
 
double swcLongitude
 Gets the South-West-Corner longitude (bounding box). More...
 
NSDate * timestamp
 Gets or sets the timestamp of the record. More...
 
float totalDistance
 Gets the total distance for the session (in meters). More...
 
double totalElapsedTime
 Gets the total elapsed time for the session (in seconds). More...
 
double totalRunningTime
 Gets the total running time for the session (in seconds). More...
 

Detailed Description

Represents a session 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) avgSpeed
readnonatomicassign

Gets the average speed for the session (in meters per second).

- (float) maxSpeed
readnonatomicassign

Gets the max speed for the session (in meters per second).

- (double) necLatitude
readnonatomicassign

Gets the North-East-Corner latitude (bounding box).

- (double) necLongitude
readnonatomicassign

Gets the North-East-Corner longitude (bounding box).

- (FIT_SESSION_MESG*) pstSession
readnonatomicassign

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

- (double) startLatitude
readnonatomicassign

Gets the starting latitude for the session.

- (double) startLongitude
readnonatomicassign

Gets the starting longitude for the session.

- (NSDate*) startTime
readnonatomicassign

Gets the start time for the session (represented as an NSDate).

- (double) swcLatitude
readnonatomicassign

Gets the South-West-Corner latitude (bounding box).

- (double) swcLongitude
readnonatomicassign

Gets the South-West-Corner longitude (bounding box).

- (NSDate*) timestamp
readnonatomicassigninherited

Gets or sets the timestamp of the record.

- (float) totalDistance
readnonatomicassign

Gets the total distance for the session (in meters).

- (double) totalElapsedTime
readnonatomicassign

Gets the total elapsed time for the session (in seconds).

- (double) totalRunningTime
readnonatomicassign

Gets the total running time for the session (in seconds).