TMDStatsValue Class Reference

Inherits from NSObject
Declared in TMDStats.h

  activity

The activity name

@property (nonatomic, strong) NSString *activity

Declared In

TMDStats.h

  userCo2

The amount of CO2 (in grams) generated during the activity, for the user

@property (assign) double userCo2

Declared In

TMDStats.h

  userDistance

The distance in meters covered in the activity, for the user

@property (assign) double userDistance

Declared In

TMDStats.h

  userDuration

The duration in seconds of the activity, for the user

@property (assign) NSTimeInterval userDuration

Declared In

TMDStats.h

  userLegs

The number of times this activity was detected for that period, for the user

@property (assign) int userLegs

Declared In

TMDStats.h

  communityCo2

The average amount of CO2 (in grams) for the community for this activity

@property (assign) double communityCo2

Declared In

TMDStats.h

  communityDistance

The average distance in meters for the community for this activity

@property (assign) double communityDistance

Declared In

TMDStats.h

  communityDuration

The average duration in seconds for the community for this activity

@property (assign) NSTimeInterval communityDuration

Declared In

TMDStats.h

  communityLegs

The number of times this activity was detected for that period, for the community

@property (assign) int communityLegs

Declared In

TMDStats.h

  communitySize

The number of users in the community

@property (assign) int communitySize

Declared In

TMDStats.h

  dateString

The statistics date

@property (nonatomic, strong) NSString *dateString

Declared In

TMDStats.h

– initWithActivity:userCo2:userDistance:userDuration:userLegs:communityCo2:communityDistance:communityDuration:communityLegs:communitySize:dateString:

- (instancetype)initWithActivity:(NSString *)activity userCo2:(double)userCo2 userDistance:(double)userDistance userDuration:(NSTimeInterval)userDuration userLegs:(int)userLegs communityCo2:(double)communityCo2 communityDistance:(double)communityDistance communityDuration:(NSTimeInterval)communityDuration communityLegs:(int)communityLegs communitySize:(int)communitySize dateString:(NSString *)dateString

– initWithActivity:dictionary:communitySize:dateString:

- (instancetype)initWithActivity:(NSString *)activity dictionary:(NSDictionary *)stats communitySize:(int)communitySize dateString:(NSString *)dateString

– hasSameDataThanStatsValue:

- (BOOL)hasSameDataThanStatsValue:(TMDStatsValue *)other