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

Represents a single record in a Weight Scale Profile FIT file. More...

#import <WFFitMessageWeightScale.h>

+ Inheritance diagram for WFFitMessageWeightScale:
+ Collaboration diagram for WFFitMessageWeightScale:

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

FIT_WEIGHT_SCALE_MESGpstWeightScale
 Gets a pointer to the FIT_WEIGHT_SCALE_MESG structure containing the data for this record. More...
 
NSDate * timestamp
 Gets or sets the timestamp of the record. More...
 
double weight
 Gets or sets the weight in kilograms. More...
 

Detailed Description

Represents a single record in a Weight Scale Profile 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

- (FIT_WEIGHT_SCALE_MESG*) pstWeightScale
readnonatomicassign

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

- (NSDate*) timestamp
readnonatomicassigninherited

Gets or sets the timestamp of the record.

- (double) weight
readnonatomicassign

Gets or sets the weight in kilograms.

Note
-1 indicates an invalid value.