#import <Foundation/Foundation.h>
@class FitActivityRecord; typedef NS_ENUM(NSUInteger, FitActivityType) { FitActivityTypeWalk = 11, FitActivityTypeRun = 1, FitActivityTypeRide = 2, FitActivityTypeSwim = 5, FitActivityTypeHike = 17, };
@interface FitActivity : NSObject
@property (copy, readonly, nonatomic) NSString *path;
@property (copy, nonatomic) NSString *name;
@property (assign, nonatomic) FitActivityType type;
@property (copy, readonly, nonatomic) NSString *typeString;
@property (strong, nonatomic) NSMutableArray<FitActivityRecord *> *records;
- (void)addRecord:(void (^)(FitActivityRecord *aRecord))record;
@end
@interface FitActivityRecord : NSObject
@property (assign, nonatomic) unsigned int timestamp;
@property (assign, nonatomic) int position_lat;
@property (assign, nonatomic) int position_long;
@property (assign, nonatomic) unsigned int distance;
@property (assign, nonatomic) unsigned short altitude;
@property (assign, nonatomic) unsigned short speed;
@property (assign, nonatomic) unsigned char heart_rate;
@end
|