diff --git a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h index 15044ff..1c6f1e1 100644 --- a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h +++ b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h @@ -17,21 +17,82 @@ typedef void(^UPBodyEventAPICompletion)(UPBodyEvent *event, UPURLResponse *respo @interface UPBodyEventAPI : NSObject +/** + * Get body composition metrics record events for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)getBodyEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; + +/** + * Create a new user event to record body composition metrics for the currently authenticated user. + * @param event New body event. + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)postBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion; + +/** + * Get a single body composition metric event for the currently authenticated user. + * @param event Existing body event. + * @param completion Block to be executed upon completion. This block is passed the result or any error information. + */ + (void)refreshBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion; + +/** + * Delete a single Weight metric event for the currently authenticated user. + * @param event Existing body event. + * @param completion Block to be executed upon completion. This block is passed the result or any error information. + */ + (void)deleteBodyEvent:(UPBodyEvent *)event completion:(UPBaseEventAPICompletion)completion; @end @interface UPBodyEvent : UPGenericEvent +/** + * Create a new body event with supplied parameters for the currently authenticated user. + * + * @param title Title of the new event. + * @param weight Weight in kilograms. + * @param bodyFat Body fat percentage. + * @param leanMass Lean mass percentage. + * @param bmi Body Mass Index. + * @param note Notes associated with the event. + * @param image Image to include in the event. + */ + (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note image:(UIImage *)image; + +/** + * Create a new body event with supplied parameters for the currently authenticated user. + * + * @param title Title of the new event. + * @param weight Weight in kilograms. + * @param bodyFat Body fat percentage. + * @param leanMass Lean mass percentage. + * @param bmi Body Mass Index. + * @param note Notes associated with the event. + * @param image URL of the image to include in the event. + */ + (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note imageURL:(NSString *)imageURL; +/** + * Weight in kilograms. + */ @property (nonatomic, strong) NSNumber *weight; + +/** + * Body fat percentage. + */ @property (nonatomic, strong) NSNumber *bodyFat; + +/** + * Lean mass percentage. + */ @property (nonatomic, strong) NSNumber *leanMass; + +/** + * Body Mass Index. + */ @property (nonatomic, strong) NSNumber *bmi; @end diff --git a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h index a85c5ba..da27600 100644 --- a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h +++ b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h @@ -17,20 +17,76 @@ typedef void(^UPCardiacEventAPICompletion)(UPCardiacEvent *event, UPURLResponse @interface UPCardiacEventAPI : NSObject +/** + * Request recent cardiac events for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)getCardiacEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; + +/** + * Post a cardiac event for the currently authenticated user. + * + * @param event A new cardiac event. + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)postCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion; + +/** + * Refresh (update) an existing cardiac event for the currently authenticated user. + * + * @param event An existing cardiac event. + * @param completion Block to be executed upon completion. This block is passed the result or any error information. + */ + (void)refreshCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion; + +/** + * Delete a cardiac event for the currently authenticated user. + * + * @param event An existing cardiac event. + * @param completion Block to be executed upon completion. This block is passed the result or any error information. + */ + (void)deleteCardiacEvent:(UPCardiacEvent *)event completion:(UPBaseEventAPICompletion)completion; @end @interface UPCardiacEvent : UPGenericEvent +/** + * Create a new cardiac event with supplied parameters for the currently authenticated user. + * + * @param title Title for the new event. + * @param heartRate Heart rate. + * @param systolicPressure Systolic pressure. + * @param diastolicPressure Diastolic pressure. + * @param image Associated image. + */ + (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note image:(UIImage *)image; + +/** + * Create a new cardiac event with supplied parameters for the currently authenticated user. + * + * @param title Title for the new event. + * @param heartRate Heart rate. + * @param systolicPressure Systolic pressure. + * @param diastolicPressure Diastolic pressure. + * @param imageURL The URL for the associated image. + */ + (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note imageURL:(NSString *)imageURL; +/** + * Heart rate for the currently authenticated user. + */ @property (nonatomic, strong) NSNumber *heartRate; + +/** + * Systolic pressure for the currently authenticated user. + */ @property (nonatomic, strong) NSNumber *systolicPressure; + +/** + * Diastolic pressure for the currently authenticated user. + */ @property (nonatomic, strong) NSNumber *diastolicPressure; @end diff --git a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h index 0bca773..bc7ba0e 100644 --- a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h +++ b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h @@ -16,22 +16,83 @@ typedef void(^UPGenericEventAPICompletion)(UPGenericEvent *event, UPURLResponse @interface UPGenericEventAPI : NSObject +/** + * Get generic events for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)getGenericEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; + +/** + * Create a new generic event for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)postGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion; + +/** + * Get a generic event for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)refreshGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion; + +/** + * Delete a generic event for the currently authenticated user. + * + * @param completion Block to be executed upon completion. This block is passed the results or any error information. + */ + (void)deleteGenericEvent:(UPGenericEvent *)event completion:(UPBaseEventAPICompletion)completion; @end @interface UPGenericEvent : UPBaseEvent +/** + * Create a new generic event with supplied parameters for the currently authenticated user. + * + * @param title Title of the new event. + * @param verb Verb to indicate user action (used in the feed story). + * @param attributes Set of attributes associated with the event (used in the feed story). + * @param note Description of the event. + * @param image Image to include in the event. + */ + (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note image:(UIImage *)image; + +/** + * Create a new generic event with supplied parameters for the currently authenticated user. + * + * @param title Title of the new event. + * @param verb Verb to indicate user action (used in the feed story). + * @param attributes Set of attributes associated with the event (used in the feed story). + * @param note Description of the event. + * @param imageURL URI of the image to include in the event. + */ + (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note imageURL:(NSString *)imageURL; +/** + * Verb to indicate user action (used in the feed story). + */ @property (nonatomic, strong) NSString *verb; + +/** + * Set of attributes associated with the event (used in the feed story). + */ @property (nonatomic, strong) NSDictionary *attributes; + +/** + * Description of the event. + */ @property (nonatomic, strong) NSString *note; + +/** + * URI of the event's image. + */ @property (nonatomic, strong) NSString *imageURL; + +/** + * Event image. + */ @property (nonatomic, strong) UIImage *image; @end diff --git a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h index 3f9316e..471cafb 100644 --- a/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h +++ b/HelloUP/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h @@ -2,7 +2,7 @@ // UPPlatformSDK.h // UPPlatformSDK // -// Created by Kyrylo Zdornyy on 12/4/13. +// Created by Shadow on 11/13/13. // Copyright (c) 2013 Jawbone. All rights reserved. // diff --git a/HelloUP/UPPlatformSDK.framework/Versions/A/UPPlatformSDK b/HelloUP/UPPlatformSDK.framework/Versions/A/UPPlatformSDK index f69d6ad..07897ff 100644 Binary files a/HelloUP/UPPlatformSDK.framework/Versions/A/UPPlatformSDK and b/HelloUP/UPPlatformSDK.framework/Versions/A/UPPlatformSDK differ diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Headers b/UPPlatformSDK/UPPlatformSDK.framework/Headers deleted file mode 120000 index a177d2a..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Headers +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Headers \ No newline at end of file diff --git a/UPPlatformSDK/UPPlatformSDK.framework/PrivateHeaders b/UPPlatformSDK/UPPlatformSDK.framework/PrivateHeaders deleted file mode 120000 index d8e5645..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/PrivateHeaders +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/PrivateHeaders \ No newline at end of file diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Resources b/UPPlatformSDK/UPPlatformSDK.framework/Resources deleted file mode 120000 index 953ee36..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Resources +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/Resources \ No newline at end of file diff --git a/UPPlatformSDK/UPPlatformSDK.framework/UPPlatformSDK b/UPPlatformSDK/UPPlatformSDK.framework/UPPlatformSDK deleted file mode 120000 index e124912..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/UPPlatformSDK +++ /dev/null @@ -1 +0,0 @@ -Versions/Current/UPPlatformSDK \ No newline at end of file diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UP.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UP.h deleted file mode 100644 index 60b0afe..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UP.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// UP.h -// PlatformSDK -// -// Created by Andy Roth on 4/7/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import "UPPlatform.h" -#import "UPSession.h" -#import "UPURLRequest.h" -#import "UPURLResponse.h" -#import "UPGenericEventAPI.h" -#import "UPBodyEventAPI.h" -#import "UPCardiacEventAPI.h" -#import "UPMoodAPI.h" -#import "UPUserAPI.h" -#import "UPMoveAPI.h" -#import "UPWorkoutAPI.h" -#import "UPSleepAPI.h" -#import "UPMealAPI.h" diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPAuthViewController.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPAuthViewController.h deleted file mode 100644 index ce758f0..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPAuthViewController.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// UPAuthViewController.h -// PlatformSDK -// -// Created by Andy Roth on 4/6/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// -#if !(!TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR) -#import - -#import "UPPlatform.h" - -@class UPAuthViewController; - -@protocol UPAuthViewControllerDelegate - -- (void)authViewController:(UPAuthViewController *)viewController didCompleteWithAuthCode:(NSString *)code; -- (void)authViewController:(UPAuthViewController *)viewController didFailWithError:(NSError *)error; -- (void)authViewControllerDidCancel:(UPAuthViewController *)viewController; - -@end - -@interface UPAuthViewController : UIViewController - -- (id)initWithURL:(NSURL *)url delegate:(id)delegate; -- (void)show; - -@end -#endif \ No newline at end of file diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBaseEventAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBaseEventAPI.h deleted file mode 100644 index 76c4e48..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBaseEventAPI.h +++ /dev/null @@ -1,63 +0,0 @@ -// -// UPBaseEventAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/30/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPURLRequest.h" - -@class UPURLResponse, UPBaseEvent, UPSnapshot; - -typedef void(^UPBaseEventAPICompletion)(id result, UPURLResponse *response, NSError *error); -typedef void(^UPBaseEventAPIArrayCompletion)(NSArray *results, UPURLResponse *response, NSError *error); -typedef void(^UPBaseEventAPIImageCompletion)(UIImage *image); -typedef void(^UPBaseEventAPISnapshotCompletion)(UPSnapshot *snapshot, UPURLResponse *response, NSError *error); - -@interface UPBaseEventAPI : NSObject - -+ (void)getEventsOfType:(NSString *)type destinationClass:(Class)destClass completion:(UPBaseEventAPICompletion)completion; -+ (void)postEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion; -+ (void)updateEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion; -+ (void)refreshEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion; -+ (void)deleteEvent:(UPBaseEvent *)event completion:(UPBaseEventAPICompletion)completion; - -@end - -@protocol UPBaseObject - -- (void)decodeFromDictionary:(NSDictionary *)dictionary; -- (NSDictionary *)encodeToDictionary; - -@end - -@interface UPBaseEvent : NSObject - -@property (nonatomic, strong) NSString *xid; -@property (nonatomic, strong) NSString *title; -@property (nonatomic, strong) NSDate *date; -@property (nonatomic, strong) NSDate *timeCreated; -@property (nonatomic, strong) NSDate *timeUpdated; -@property (nonatomic, strong) NSTimeZone *timeZone; - -- (NSString *)apiType; - -@end - -@interface UPSnapshot : NSObject - -@property (nonatomic, strong) NSArray *ticks; - -+ (UPSnapshot *)snapshotWithArray:(NSArray *)array; - -@end - -@interface UPSnapshotTick : NSObject - -@property (nonatomic, strong) NSDate *timestamp; -@property (nonatomic, strong) NSNumber *value; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h deleted file mode 100644 index 1c6f1e1..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPBodyEventAPI.h +++ /dev/null @@ -1,98 +0,0 @@ -// -// UPBodyEventAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/30/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" -#import "UPGenericEventAPI.h" - -@class UPBodyEvent, UPURLResponse; - -typedef void(^UPBodyEventAPICompletion)(UPBodyEvent *event, UPURLResponse *response, NSError *error); - -@interface UPBodyEventAPI : NSObject - -/** - * Get body composition metrics record events for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)getBodyEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Create a new user event to record body composition metrics for the currently authenticated user. - * @param event New body event. - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)postBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion; - -/** - * Get a single body composition metric event for the currently authenticated user. - * @param event Existing body event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)refreshBodyEvent:(UPBodyEvent *)event completion:(UPBodyEventAPICompletion)completion; - -/** - * Delete a single Weight metric event for the currently authenticated user. - * @param event Existing body event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)deleteBodyEvent:(UPBodyEvent *)event completion:(UPBaseEventAPICompletion)completion; - -@end - -@interface UPBodyEvent : UPGenericEvent - -/** - * Create a new body event with supplied parameters for the currently authenticated user. - * - * @param title Title of the new event. - * @param weight Weight in kilograms. - * @param bodyFat Body fat percentage. - * @param leanMass Lean mass percentage. - * @param bmi Body Mass Index. - * @param note Notes associated with the event. - * @param image Image to include in the event. - */ -+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note image:(UIImage *)image; - -/** - * Create a new body event with supplied parameters for the currently authenticated user. - * - * @param title Title of the new event. - * @param weight Weight in kilograms. - * @param bodyFat Body fat percentage. - * @param leanMass Lean mass percentage. - * @param bmi Body Mass Index. - * @param note Notes associated with the event. - * @param image URL of the image to include in the event. - */ -+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note imageURL:(NSString *)imageURL; - -/** - * Weight in kilograms. - */ -@property (nonatomic, strong) NSNumber *weight; - -/** - * Body fat percentage. - */ -@property (nonatomic, strong) NSNumber *bodyFat; - -/** - * Lean mass percentage. - */ -@property (nonatomic, strong) NSNumber *leanMass; - -/** - * Body Mass Index. - */ -@property (nonatomic, strong) NSNumber *bmi; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h deleted file mode 100644 index da27600..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPCardiacEventAPI.h +++ /dev/null @@ -1,92 +0,0 @@ -// -// UPCardiacEventAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/30/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" -#import "UPGenericEventAPI.h" - -@class UPCardiacEvent, UPURLResponse; - -typedef void(^UPCardiacEventAPICompletion)(UPCardiacEvent *event, UPURLResponse *response, NSError *error); - -@interface UPCardiacEventAPI : NSObject - -/** - * Request recent cardiac events for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)getCardiacEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Post a cardiac event for the currently authenticated user. - * - * @param event A new cardiac event. - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)postCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion; - -/** - * Refresh (update) an existing cardiac event for the currently authenticated user. - * - * @param event An existing cardiac event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)refreshCardiacEvent:(UPCardiacEvent *)event completion:(UPCardiacEventAPICompletion)completion; - -/** - * Delete a cardiac event for the currently authenticated user. - * - * @param event An existing cardiac event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)deleteCardiacEvent:(UPCardiacEvent *)event completion:(UPBaseEventAPICompletion)completion; - -@end - -@interface UPCardiacEvent : UPGenericEvent - -/** - * Create a new cardiac event with supplied parameters for the currently authenticated user. - * - * @param title Title for the new event. - * @param heartRate Heart rate. - * @param systolicPressure Systolic pressure. - * @param diastolicPressure Diastolic pressure. - * @param image Associated image. - */ -+ (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note image:(UIImage *)image; - -/** - * Create a new cardiac event with supplied parameters for the currently authenticated user. - * - * @param title Title for the new event. - * @param heartRate Heart rate. - * @param systolicPressure Systolic pressure. - * @param diastolicPressure Diastolic pressure. - * @param imageURL The URL for the associated image. - */ -+ (UPCardiacEvent *)eventWithTitle:(NSString *)title heartRate:(NSNumber *)heartRate systolicPressure:(NSNumber *)systolicPressure diastolicPressure:(NSNumber *)diastolicPressure note:(NSString *)note imageURL:(NSString *)imageURL; - -/** - * Heart rate for the currently authenticated user. - */ -@property (nonatomic, strong) NSNumber *heartRate; - -/** - * Systolic pressure for the currently authenticated user. - */ -@property (nonatomic, strong) NSNumber *systolicPressure; - -/** - * Diastolic pressure for the currently authenticated user. - */ -@property (nonatomic, strong) NSNumber *diastolicPressure; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h deleted file mode 100644 index bc7ba0e..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPGenericEventAPI.h +++ /dev/null @@ -1,98 +0,0 @@ -// -// UPGenericEventAPI.h -// PlatformSDK -// -// Created by Andy Roth on 4/8/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPGenericEvent, UPURLResponse; - -typedef void(^UPGenericEventAPICompletion)(UPGenericEvent *event, UPURLResponse *response, NSError *error); - -@interface UPGenericEventAPI : NSObject - -/** - * Get generic events for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)getGenericEventsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Create a new generic event for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)postGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion; - -/** - * Get a generic event for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)refreshGenericEvent:(UPGenericEvent *)event completion:(UPGenericEventAPICompletion)completion; - -/** - * Delete a generic event for the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)deleteGenericEvent:(UPGenericEvent *)event completion:(UPBaseEventAPICompletion)completion; - -@end - -@interface UPGenericEvent : UPBaseEvent - -/** - * Create a new generic event with supplied parameters for the currently authenticated user. - * - * @param title Title of the new event. - * @param verb Verb to indicate user action (used in the feed story). - * @param attributes Set of attributes associated with the event (used in the feed story). - * @param note Description of the event. - * @param image Image to include in the event. - */ -+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note image:(UIImage *)image; - -/** - * Create a new generic event with supplied parameters for the currently authenticated user. - * - * @param title Title of the new event. - * @param verb Verb to indicate user action (used in the feed story). - * @param attributes Set of attributes associated with the event (used in the feed story). - * @param note Description of the event. - * @param imageURL URI of the image to include in the event. - */ -+ (UPGenericEvent *)eventWithTitle:(NSString *)title verb:(NSString *)verb attributes:(NSDictionary *)attributes note:(NSString *)note imageURL:(NSString *)imageURL; - -/** - * Verb to indicate user action (used in the feed story). - */ -@property (nonatomic, strong) NSString *verb; - -/** - * Set of attributes associated with the event (used in the feed story). - */ -@property (nonatomic, strong) NSDictionary *attributes; - -/** - * Description of the event. - */ -@property (nonatomic, strong) NSString *note; - -/** - * URI of the event's image. - */ -@property (nonatomic, strong) NSString *imageURL; - -/** - * Event image. - */ -@property (nonatomic, strong) UIImage *image; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMealAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMealAPI.h deleted file mode 100644 index b88befd..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMealAPI.h +++ /dev/null @@ -1,171 +0,0 @@ -// -// UPMealAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/31/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPMeal, UPURLResponse, UPMealNutritionInfo, UPMealItem; - -typedef void(^UPMealAPICompletion)(UPMeal *meal, UPURLResponse *response, NSError *error); - -@interface UPMealAPI : NSObject - -/** - * Request most recent meal events for the currently authenticated user. The request is made asynchronously. - * - * @param limit Maximum number of meals to be retrieved. - * @param completion Block to be executed upon completion. The block is passed a result array. - */ -+ (void)getMealsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Request meal events between two points in time for the currently authenticated user. The request is made - * asynchronously. - * - * @param startDate - * @param endDate - * @param completion Block to be executed upon completion. The block is passed a result array. - */ -+ (void)getMealsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Post a meal event to the feed of the currently authenticated user. - * - * @param meal New meal event. - * @param completion Block to be executed upon completion. The block is passed a result array. - */ -+ (void)postMeal:(UPMeal *)meal completion:(UPMealAPICompletion)completion; - -/** - * Request details about a meal event on the currently authenticated user's feed. - * - * @param meal New meal event. - * @param completion Block to be executed upon completion. The block is passed a result array. - */ -+ (void)getMealDetails:(UPMeal *)meal completion:(UPMealAPICompletion)completion; - -/** - * Delete a meal event that's currently on the user's timeline. - * - * @param meal New meal event. - * @param completion Block to be executed upon completion. The block is passed a result array. - */ -+ (void)deleteMeal:(UPMeal *)meal completion:(UPBaseEventAPICompletion)completion; - -@end - -@interface UPMeal : UPBaseEvent - -/** - * Create a new meal event that can be posted to the user's feed. - * - * @param title New meal event. - * @param note The note for the meal event. - * @param items The items that constitute the new meal. - */ -+ (UPMeal *)mealWithTitle:(NSString *)title note:(NSString *)note items:(NSArray *)items; - -/** - * Create a new meal event with specifed location that can be posted to the user's feed. - * - * @param title The title of the new meal event. - * @param note The note for the meal event. - * @param placeName The name of the location. - * @param placeLatitude The latitude coordinate. - * @param placeLongitude The longitude coordinate. - * @param placeAccuracy The accuracy of the coordinates. - * @param items The items that constitute the new meal. - */ -+ (UPMeal *)mealWithTitle:(NSString *)title note:(NSString *)note placeName:(NSString *)placeName placeLatitude:(NSNumber *)placeLatitude placeLongitude:(NSNumber *)placeLongitude placeAccuracy:(NSNumber *)placeAccuracy items:(NSArray *)items; - -@property (nonatomic, strong) UPMealNutritionInfo *overallNutritionInfo; -@property (nonatomic, strong) NSArray *items; -@property (nonatomic, strong) NSString *placeName; -@property (nonatomic, strong) NSNumber *placeLatitude; -@property (nonatomic, strong) NSNumber *placeLongitude; -@property (nonatomic, strong) NSNumber *placeAccuracy; -@property (nonatomic, strong) NSNumber *foodCount; - -/// TODO: What is this drinkCount? -@property (nonatomic, strong) NSNumber *drinkCount; -@property (nonatomic, strong) NSString *note; - -/// The photo for the meal. -@property (nonatomic, strong) UIImage *photo; - -/// The URL for the photo of the meal. -@property (nonatomic, strong) NSString *photoURL; - -@end - -@interface UPMealNutritionInfo : NSObject - -@property (nonatomic, strong) NSNumber *calcium; -@property (nonatomic, strong) NSNumber *calories; -@property (nonatomic, strong) NSNumber *carbohydrates; -@property (nonatomic, strong) NSNumber *cholesterol; -@property (nonatomic, strong) NSNumber *fat; -@property (nonatomic, strong) NSNumber *fiber; -@property (nonatomic, strong) NSNumber *iron; -@property (nonatomic, strong) NSNumber *monounsaturatedFat; -@property (nonatomic, strong) NSNumber *polyunsaturatedFat; -@property (nonatomic, strong) NSNumber *potassium; -@property (nonatomic, strong) NSNumber *protein; -@property (nonatomic, strong) NSNumber *saturatedFat; -@property (nonatomic, strong) NSNumber *sodium; -@property (nonatomic, strong) NSNumber *sugar; -@property (nonatomic, strong) NSNumber *unsaturatedFat; -@property (nonatomic, strong) NSNumber *vitaminA; -@property (nonatomic, strong) NSNumber *vitaminC; - -@end - -typedef NS_ENUM(NSUInteger, UPMealItemServingType) -{ - UPMealItemServingTypePlate = 1, - UPMealItemServingTypeCup = 2, - UPMealItemServingTypeBowl = 3, - UPMealItemServingTypeScale = 4, - UPMealItemServingTypeGlass = 5 -}; - -typedef NS_ENUM(NSUInteger, UPMealItemFoodType) -{ - UPMealItemFoodTypeGeneric = 1, - UPMealItemFoodTypeRestaurant = 2, - UPMealItemFoodTypeBrand = 3, - UPMealItemFoodTypePersonal = 4 -}; - -@interface UPMealItem : NSObject - -/** - * Create a new meal item that can be used inside a meal event. - * - * @param name The name of the new meal item. - * @param description The description of the new meal item. - * @param amount The amount or quantity of the new meal item. - * @param measurementUnits The unit of measurement for the new meal item. - * @param servingType The serving type of the new meal item. TODO: What is serving type? - * @param foodType The food type of the new meal item. - * @param nutritionInfo The nutrition information for the new item. - */ -+ (UPMealItem *)mealItemWithName:(NSString *)name description:(NSString *)description amount:(NSNumber *)amount measurementUnits:(NSString *)measurementUnits servingType:(UPMealItemServingType)servingType foodType:(UPMealItemFoodType)foodType nutritionInfo:(UPMealNutritionInfo *)nutritionInfo; - -@property (nonatomic, strong) NSString *name; -@property (nonatomic, strong) NSString *itemDescription; -@property (nonatomic, strong) NSNumber *amount; -@property (nonatomic, strong) NSString *measurementUnits; -@property (nonatomic, assign) UPMealItemServingType servingType; -@property (nonatomic, assign) UPMealItemFoodType foodType; -@property (nonatomic, strong) NSString *category; -@property (nonatomic, strong) UPMealNutritionInfo *nutritionInfo; - -@end - diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoodAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoodAPI.h deleted file mode 100644 index fef8d7d..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoodAPI.h +++ /dev/null @@ -1,77 +0,0 @@ -// -// UPMoodAPI.h -// PlatformSDK -// -// Created by Andy Roth on 4/9/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPMood, UPURLResponse; - -typedef void(^UPMoodAPICompletion)(UPMood *mood, UPURLResponse *response, NSError *error); - -@interface UPMoodAPI : NSObject - -/** - * Request the current mood of the currently authenticated user. - * - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)getCurrentMoodWithCompletion:(UPMoodAPICompletion)completion; - -/** - * Post a mood update to the currently authenticated user's feed. - * - * @param mood The new mood event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)postMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion; - -/** - * Delete a mood event. - * - * @param mood The mood event to be deleted. The currently authenticated user must own the mood event. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)deleteMood:(UPMood *)mood completion:(UPBaseEventAPICompletion)completion; - -/** - * Update an existing mood event. - * - * @param mood The mood event to be updated. - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (void)refreshMood:(UPMood *)mood completion:(UPMoodAPICompletion)completion; - -@end - -typedef NS_ENUM(NSUInteger, UPMoodType) -{ - UPMoodTypeAmazing, - UPMoodTypePumpedUp, - UPMoodTypeEnergized, - UPMoodTypeGood, - UPMoodTypeMeh, - UPMoodTypeDragging, - UPMoodTypeExhausted, - UPMoodTypeTotallyDone, -}; - -@interface UPMood : UPBaseEvent - -/** - * Create a new mood event. - * - * @param type The mood type of new mood event. TODO: What are the different types? - * @param completion Block to be executed upon completion. This block is passed the result or any error information. - */ -+ (UPMood *)moodWithType:(UPMoodType)type title:(NSString *)title; - -/// The type of the mood event. TODO: What are the different types? -@property (nonatomic, assign) UPMoodType type; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoveAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoveAPI.h deleted file mode 100644 index 365af22..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPMoveAPI.h +++ /dev/null @@ -1,94 +0,0 @@ -// -// UPMoveAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/30/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPMove, UPURLResponse; - -typedef void(^UPMoveAPICompletion)(UPMove *move, UPURLResponse *response, NSError *error); - -@interface UPMoveAPI : NSObject - -/** - * Request recent move events for the currently authenticated user. - * - * @param limit The maximum number of events to return. - * @param completion Block to be executed upon completion. This block is passed the results or any error information. - */ -+ (void)getMovesWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Request move events between two points in time for the currently authenticated user. - * - * @param startDate The earliest date to fetch move events from. - * @param endDate The date up to which to fetch move events to. - * @param completion Block to be executed upon completion. The block is passed the results or any error information. - */ -+ (void)getMovesFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Request a single move event from the user's history. - * - * @param move The move event to request. The event must be visible to the user. - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)refreshMove:(UPMove *)move completion:(UPMoveAPICompletion)completion; - -/** - * Request a graph image for a sleep event. - * - * @param move The move event to request the graph image for. The event must be visible to the user. - * @param completion Block to be executed upon completion. The block is passed the graph image. - */ -+ (void)getMoveGraphImage:(UPMove *)move completion:(UPBaseEventAPIImageCompletion)completion; - -/** - * TODO: What is a snapshot? - * - * @param move The move event to request the snapshot for. - * @param completion Block to be executed upon completion. The block is passed the snapshot of any error information. - */ -+ (void)getMoveSnapshot:(UPMove *)move completion:(UPBaseEventAPISnapshotCompletion)completion; - -@end - -@interface UPMove : UPBaseEvent - -/// The duration of time for which the user was active. -@property (nonatomic, strong) NSNumber *activeTime; - -/// The duration of time for which the user was inactive. -@property (nonatomic, strong) NSNumber *inactiveTime; - -/// The number of resting calories burned. TODO: What does this mean? -@property (nonatomic, strong) NSNumber *restingCalories; - -/// The number of active calories burned. TODO: What does this mean? -@property (nonatomic, strong) NSNumber *activeCalories; - -/// The number of total calories burned. -@property (nonatomic, strong) NSNumber *totalCalories; - -/// The distance traveled during the move event. -@property (nonatomic, strong) NSNumber *distance; - -/// The number of steps taken during the event. -@property (nonatomic, strong) NSNumber *steps; - -/// The longest time that the user spent idle during the move event. -@property (nonatomic, strong) NSNumber *longestIdle; - -/// The longest period of time that the user spent active during the move event. -@property (nonatomic, strong) NSNumber *longestActive; - -/// The URL for the graph image for the move event. -@property (nonatomic, strong) NSString *graphImageURL; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatform.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatform.h deleted file mode 100644 index 7f5c04e..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatform.h +++ /dev/null @@ -1,65 +0,0 @@ -// -// UPManager.h -// PlatformSDK -// -// Created by Andy Roth on 4/6/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -extern NSString * const kUPPlatformDefaultRedirectURI; - -@class UPSession, UPURLRequest, UPURLResponse; - -typedef NS_OPTIONS(NSUInteger, UPPlatformAuthScope) -{ - UPPlatformAuthScopeBasicRead = 1 << 0, - UPPlatformAuthScopeExtendedRead = 1 << 1, - UPPlatformAuthScopeLocationRead = 1 << 2, - UPPlatformAuthScopeFriendsRead = 1 << 3, - UPPlatformAuthScopeMoodRead = 1 << 4, - UPPlatformAuthScopeMoodWrite = 1 << 5, - UPPlatformAuthScopeMoveRead = 1 << 6, - UPPlatformAuthScopeMoveWrite = 1 << 7, - UPPlatformAuthScopeSleepRead = 1 << 8, - UPPlatformAuthScopeSleepWrite = 1 << 9, - UPPlatformAuthScopeMealRead = 1 << 10, - UPPlatformAuthScopeMealWrite = 1 << 11, - UPPlatformAuthScopeWeightRead = 1 << 12, - UPPlatformAuthScopeWeightWrite = 1 << 13, - UPPlatformAuthScopeCardiacRead = 1 << 14, - UPPlatformAuthScopeCardiacWrite = 1 << 15, - UPPlatformAuthScopeGenericRead = 1 << 16, - UPPlatformAuthScopeGenericWrite = 1 << 17, - UPPlatformAuthScopeAll = 1 << 18 -}; - -typedef void(^UPPlatformSessionCompletion)(UPSession *session, NSError *error); -typedef void(^UPPlatformRequestCompletion)(UPURLRequest *request, UPURLResponse *response, NSError *error); - -@interface UPPlatform : NSObject - -@property (nonatomic, readonly) UPSession *currentSession; -@property (nonatomic, readonly) NSString *redirectURI; -@property (nonatomic, assign) BOOL enableNetworkLogging; - -+ (UPPlatform *)sharedPlatform; -+ (NSString *)basePlatformURL; - -- (void)validateSessionWithCompletion:(UPPlatformSessionCompletion)completion; - -#if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR -- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret webView:(WebView *)webView completion:(UPPlatformSessionCompletion)completion; -- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret webView:(WebView *)webView authScope:(UPPlatformAuthScope)authScope completion:(UPPlatformSessionCompletion)completion; -#else -- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret completion:(UPPlatformSessionCompletion)completion; -- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret authScope:(UPPlatformAuthScope)authScope completion:(UPPlatformSessionCompletion)completion; -- (void)startSessionWithClientID:(NSString *)clientID clientSecret:(NSString *)clientSecret authScope:(UPPlatformAuthScope)authScope redirectURI:(NSString *)redirectURI completion:(UPPlatformSessionCompletion)completion; -#endif - -- (void)endCurrentSession; - -- (void)sendRequest:(UPURLRequest *)request completion:(UPPlatformRequestCompletion)completion; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h deleted file mode 100644 index 471cafb..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPPlatformSDK.h +++ /dev/null @@ -1,26 +0,0 @@ -// -// UPPlatformSDK.h -// UPPlatformSDK -// -// Created by Shadow on 11/13/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import -#import "UPPlatform.h" -#import "UPSession.h" -#import "UPURLRequest.h" -#import "UPURLResponse.h" -#import "UPGenericEventAPI.h" -#import "UPBodyEventAPI.h" -#import "UPCardiacEventAPI.h" -#import "UPMoodAPI.h" -#import "UPUserAPI.h" -#import "UPMoveAPI.h" -#import "UPWorkoutAPI.h" -#import "UPSleepAPI.h" -#import "UPMealAPI.h" - -@interface UPPlatformSDK : NSObject - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSession.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSession.h deleted file mode 100644 index 166270c..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSession.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// UPSession.h -// PlatformSDK -// -// Created by Andy Roth on 4/6/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -@class UPUser; - -@interface UPSession : NSObject - -- (id)initWithToken:(NSString *)token; - -@property (nonatomic, readonly) NSString *authenticationToken; -@property (nonatomic, strong) UPUser *currentUser; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSleepAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSleepAPI.h deleted file mode 100644 index a12eaf0..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPSleepAPI.h +++ /dev/null @@ -1,120 +0,0 @@ -// -// UPSleepAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/31/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPSleep, UPURLResponse; - -typedef void(^UPSleepAPICompletion)(UPSleep *sleep, UPURLResponse *response, NSError *error); - -@interface UPSleepAPI : NSObject - -/** - * Request recent sleep sleep for the currently authenticated user. - * - * @param limit The maximum number of events that will be returned. - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)getSleepsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Request sleep events between two points in time for the currently authenticated user. - * - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)getSleepsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Post a new sleep event to the user's timeline. - * - * @param sleep A new sleep event. - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)postSleep:(UPSleep *)sleep completion:(UPSleepAPICompletion)completion; - -/** - * Request sleep recent sleep events for the currently authenticated user. - * - * @param limit - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)refreshSleep:(UPSleep *)sleep completion:(UPSleepAPICompletion)completion; - -/** - * Delete a sleep event. The event must belong to the currently authenticated user. - * - * @param sleep The sleep event to be deleted. - * @param completion Block to be executed upon completion. The block is passed a completion object. - */ -+ (void)deleteSleep:(UPSleep *)sleep completion:(UPBaseEventAPICompletion)completion; - -/** - * Request an image containing a graph for the sleep event. The event must be visible to the currently authenticated user. - * - * @param sleep The sleep event to request. - * @param completion Block to be executed upon completion. The block is passed the result. - */ -+ (void)getSleepGraphImage:(UPSleep *)sleep completion:(UPBaseEventAPIImageCompletion)completion; - -/** - * TODO: What is a sleep snapshot? - * - * @param sleep The sleep event to request the snapshot for. - * @param completion Block to be executed upon completion. The block is passed the result. - */ -+ (void)getSleepSnapshot:(UPSleep *)sleep completion:(UPBaseEventAPISnapshotCompletion)completion; - -@end - -@interface UPSleep : UPBaseEvent - -/** - * Create a new sleep event. - * - * @param startTime The time the user went to sleep. - * @param endTime The time the user woke up. - * @return Returns a new sleep event. - */ -+ (UPSleep *)sleepWithStartTime:(NSDate *)startTime endTime:(NSDate *)endTime; - -/// TODO: What is the difference between this and awakeTime? -@property (nonatomic, strong) NSDate *timeCompleted; - -/// The time when the user went to sleep. -@property (nonatomic, strong) NSDate *asleepTime; - -/// TODO: What is the difference between this and timeCompleted? -@property (nonatomic, strong) NSDate *awakeTime; - -/// The total amount of time the user was awake (e.g., woken up by a car alarm) during the times they went to sleep and woke up. -@property (nonatomic, strong) NSNumber *totalTimeAwake; - -/// The total time the user spent in light sleep. -@property (nonatomic, strong) NSNumber *totalTimeLight; - -/// The total time the user spent in deep sleep. -@property (nonatomic, strong) NSNumber *totalTimeDeep; - -/// The total time the user was asleep. -@property (nonatomic, strong) NSNumber *totalTime; - -/// The quality of the sleep. TODO: What is the min and max? -@property (nonatomic, strong) NSNumber *quality; - -/// How many times did the user wake up during their sleep? -@property (nonatomic, strong) NSNumber *awakenings; - -/// What time was the smart alarm scheduled to go off? -@property (nonatomic, strong) NSDate *smartAlarmFireTime; - -/// The URL to the graph of the sleep event. -@property (nonatomic, strong) NSString *graphImageURL; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLRequest.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLRequest.h deleted file mode 100644 index 502cf68..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLRequest.h +++ /dev/null @@ -1,18 +0,0 @@ -// -// UPURLRequest.h -// PlatformSDK -// -// Created by Andy Roth on 4/6/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -@interface UPURLRequest : NSMutableURLRequest - -+ (UPURLRequest *)getRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params; -+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params; -+ (UPURLRequest *)deleteRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params; -+ (UPURLRequest *)postRequestWithEndpoint:(NSString *)endpoint params:(NSDictionary *)params image:(UIImage *)image; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLResponse.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLResponse.h deleted file mode 100644 index 5a159e4..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPURLResponse.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// UPURLResponse.h -// PlatformSDK -// -// Created by Andy Roth on 4/6/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -@interface UPURLResponse : NSObject - -- (id)initWithCode:(NSInteger)code data:(NSDictionary *)data metadata:(NSDictionary *)metadata nextPageURL:(NSString *)nextPageURL; - -@property (nonatomic, readonly) NSInteger code; -@property (nonatomic, readonly) NSDictionary *data; -@property (nonatomic, readonly) NSDictionary *metadata; -@property (nonatomic, readonly) NSString *nextPageURL; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPUserAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPUserAPI.h deleted file mode 100644 index a4ab797..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPUserAPI.h +++ /dev/null @@ -1,81 +0,0 @@ -// -// UPUserAPI.h -// PlatformSDK -// -// Created by Andy Roth on 4/9/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" - -@class UPUser, UPURLResponse; - -typedef void(^UPUserAPICompletion)(UPUser *user, UPURLResponse *response, NSError *error); -typedef void(^UPUserTrendsAPICompletion)(NSArray *trends, UPURLResponse *response, NSError *error); - -typedef NS_ENUM(NSUInteger, UPUserTrendsRangeType) -{ - UPUserTrendsRangeTypeDays, - UPUserTrendsRangeTypeWeeks -}; - -typedef NS_ENUM(NSUInteger, UPUserTrendsBucketSize) -{ - UPUserTrendsBucketSizeDays, - UPUserTrendsBucketSizeWeeks, - UPUserTrendsBucketSizeMonths, - UPUserTrendsBucketSizeYears -}; - -typedef NS_ENUM(NSUInteger, UPUserGender) -{ - UPUserGenderMale, - UPUserGenderFemale -}; - -@interface UPUserAPI : NSObject - -+ (void)getCurrentUserWithCompletion:(UPUserAPICompletion)completion; -+ (void)getFriendsWithCompletion:(UPBaseEventAPIArrayCompletion)completion; -+ (void)getTrendsWithEndDate:(NSDate *)endDate rangeType:(UPUserTrendsRangeType)rangeType rangeDuration:(NSUInteger)rangeDuration bucketSize:(UPUserTrendsBucketSize)bucketSize completion:(UPUserTrendsAPICompletion)completion; - -@end - -@interface UPUser : NSObject - -@property (nonatomic, strong) NSString *xid; -@property (nonatomic, strong) NSString *firstName; -@property (nonatomic, strong) NSString *lastName; -@property (nonatomic, strong) NSString *imageURL; - -@end - -@interface UPTrend : NSObject - -@property (nonatomic, strong) NSDate *date; -@property (nonatomic, strong) NSNumber *weight; -@property (nonatomic, strong) NSNumber *height; -@property (nonatomic, assign) UPUserGender gender; -@property (nonatomic, strong) NSNumber *age; -@property (nonatomic, strong) NSNumber *moveDistance; -@property (nonatomic, strong) NSNumber *moveSteps; -@property (nonatomic, strong) NSNumber *moveWorkoutTime; -@property (nonatomic, strong) NSNumber *moveActiveTime; -@property (nonatomic, strong) NSNumber *moveCalories; -@property (nonatomic, strong) NSNumber *sleepLight; -@property (nonatomic, strong) NSNumber *sleepDeep; -@property (nonatomic, strong) NSNumber *sleepAwake; -@property (nonatomic, strong) NSNumber *sleepTimeAsleep; -@property (nonatomic, strong) NSNumber *sleepTimeAwake; -@property (nonatomic, strong) NSNumber *eatProtein; -@property (nonatomic, strong) NSNumber *eatCalcium; -@property (nonatomic, strong) NSNumber *eatSaturatedFat; -@property (nonatomic, strong) NSNumber *eatCalories; -@property (nonatomic, strong) NSNumber *eatSodium; -@property (nonatomic, strong) NSNumber *eatSugar; -@property (nonatomic, strong) NSNumber *eatCarbs; -@property (nonatomic, strong) NSNumber *eatFiber; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPWorkoutAPI.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPWorkoutAPI.h deleted file mode 100644 index a34f83e..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UPWorkoutAPI.h +++ /dev/null @@ -1,141 +0,0 @@ -// -// UPWorkoutAPI.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/31/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -#import "UPBaseEventAPI.h" -#import "UPMoveAPI.h" - -@class UPWorkout, UPURLResponse; - -typedef void(^UPWorkoutAPICompletion)(UPWorkout *workout, UPURLResponse *response, NSError *error); - -@interface UPWorkoutAPI : NSObject - -/** - * Request recent workout events for the currently authenticated user. - * - * @param limit The maximum number of workout events to be returned. - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)getWorkoutsWithLimit:(NSUInteger)limit completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Request workout events between two points in time for the currently authenticated user. - * - * @param startDate Request workout events after this date. The date must be in the past. - * @param endDate Request workout events before this date. The date must be in the past. - * @param completion Block to be executed upon completion. The block is passed the results. - */ -+ (void)getWorkoutsFromStartDate:(NSDate *)startDate toEndDate:(NSDate *)endDate completion:(UPBaseEventAPIArrayCompletion)completion; - -/** - * Post a new workout event to the feed of the currently authenticated user. - * - * @param workout A new workout event to be added to the feed. - * @param completion Block to be executed upon request completion. - */ -+ (void)postWorkout:(UPWorkout *)workout completion:(UPWorkoutAPICompletion)completion; - -/** - * Request an existing workout event. The event must be visible to the currently authenticated user. - * - * @param workout An existing workout event. - * @param completion Block to be executed upon completion. The block is passed the result. - */ -+ (void)refreshWorkout:(UPWorkout *)workout completion:(UPWorkoutAPICompletion)completion; - -/** - * Delete an existing workout event. The event must belong to the currently authenticated user. - * - * @param workout The existing workout event to be deleted. - * @param completion Block to be executed upon completion. - */ -+ (void)deleteWorkout:(UPWorkout *)workout completion:(UPBaseEventAPICompletion)completion; - -/** - * Request the graph image for the workout event. - * - * @param workout The workout for which to request the graph. - * @param completion Block to be executed upon completion. The block is passed the result image. - */ -+ (void)getWorkoutGraphImage:(UPWorkout *)workout completion:(UPBaseEventAPIImageCompletion)completion; - -/** - * TODO: What is workout snapshot? - * - * @param workout The workout for which to request the snapshot. - * @param completion Block to be executed upon completion. The block is passed the snapshot. - */ -+ (void)getWorkoutSnapshot:(UPWorkout *)workout completion:(UPBaseEventAPISnapshotCompletion)completion; - -@end - -typedef NS_ENUM(NSUInteger, UPWorkoutType) -{ - UPWorkoutTypeWalk = 1, - UPWorkoutTypeRun = 2, - UPWorkoutTypeWeightLifting = 3, - UPWorkoutTypeCrossTrain = 4, - UPWorkoutTypeNikeTraining = 5, - UPWorkoutTypeYoga = 6, - UPWorkoutTypePilates = 7, - UPWorkoutTypeBodyWeightExercise = 8, - UPWorkoutTypeCrossfit = 9, - UPWorkoutTypeP90X = 10, - UPWorkoutTypeZumba = 11, - UPWorkoutTypeTRX = 12, - UPWorkoutTypeSwim = 13, - UPWorkoutTypeBike = 14, - UPWorkoutTypeElliptical = 15, - UPWorkoutTypeBarMethod = 16, - UPWorkoutTypeKinectExercise = 17, - UPWorkoutTypeTennis = 18, - UPWorkoutTypeBasketball = 19, - UPWorkoutTypeGolf = 20, - UPWorkoutTypeSoccer = 21, - UPWorkoutTypeSkiOrSnowboard = 22, - UPWorkoutTypeDance = 23, - UPWorkoutTypeHike = 24, - UPWorkoutTypeCrossCountrySki = 25, - UPWorkoutTypeStationaryBike = 26, - UPWorkoutTypeCardio = 27, - UPWorkoutTypeGame = 28 -}; - -typedef NS_ENUM(NSUInteger, UPWorkoutIntensity) -{ - UPWorkoutIntensityEasy = 1, - UPWorkoutIntensityModerate = 2, - UPWorkoutIntensityIntermediate = 3, - UPWorkoutIntensityDifficult = 4, - UPWorkoutIntensityHard = 5 -}; - -@interface UPWorkout : UPMove - -/** - * Create a new workout event. - * - * @param type The type of workout that is being created. - * @param startTime The time when the workout was started. The time must be in the past. - * @param endTime The time the workout had finished. The time must be in the past. - * @param intensity The intensity of the workout. - * @param caloriesBurned The number of calories burned during the workout. - * @return Returns a new workout event. - */ -+ (UPWorkout *)workoutWithType:(UPWorkoutType)type startTime:(NSDate *)startTime endTime:(NSDate *)endTime intensity:(UPWorkoutIntensity)intensity caloriesBurned:(NSNumber *)caloriesBurned; - -@property (nonatomic, assign) UPWorkoutType type; -@property (nonatomic, assign) UPWorkoutIntensity intensity; -@property (nonatomic, strong) NSDate *timeCompleted; -@property (nonatomic, strong) NSString *imageURL; -@property (nonatomic, strong) NSString *routeImageURL; -@property (nonatomic, strong) UIImage *image; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDate+UPPlatform.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDate+UPPlatform.h deleted file mode 100644 index 9671f2f..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDate+UPPlatform.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// NSDate+UPPlatform.h -// PlatformSDK -// -// Created by Andy Roth on 4/9/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -@interface NSDate (UPPlatform) - -+ (NSDate *)dateFromDayInt:(NSUInteger)dayInt inTimeZone:(NSTimeZone*)timezone; -+ (NSDate *)dateFromDayInt:(NSUInteger)dayInt; -- (NSString *)dayIntString; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDictionary+UPPlatform.h b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDictionary+UPPlatform.h deleted file mode 100644 index ed753c7..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/PrivateHeaders/NSDictionary+UPPlatform.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// NSDictionary+UPPlatform.h -// UPPlatformSDK -// -// Created by Andy Roth on 5/30/13. -// Copyright (c) 2013 Jawbone. All rights reserved. -// - -#import - -@interface NSDictionary (UPPlatform) - -- (NSNumber *)numberForKey:(NSString *)key; -- (NSString *)stringForKey:(NSString *)key; - -@end diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/Info.plist b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/Info.plist deleted file mode 100644 index 8964cc2..0000000 Binary files a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/Info.plist and /dev/null differ diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/UPPlatformSDK-Info.plist b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/UPPlatformSDK-Info.plist deleted file mode 100644 index 93c749b..0000000 Binary files a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/UPPlatformSDK-Info.plist and /dev/null differ diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/en.lproj/InfoPlist.strings b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/en.lproj/InfoPlist.strings deleted file mode 100644 index 3967e06..0000000 Binary files a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Resources/en.lproj/InfoPlist.strings and /dev/null differ diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/UPPlatformSDK b/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/UPPlatformSDK deleted file mode 100644 index 07897ff..0000000 Binary files a/UPPlatformSDK/UPPlatformSDK.framework/Versions/A/UPPlatformSDK and /dev/null differ diff --git a/UPPlatformSDK/UPPlatformSDK.framework/Versions/Current b/UPPlatformSDK/UPPlatformSDK.framework/Versions/Current deleted file mode 120000 index 8c7e5a6..0000000 --- a/UPPlatformSDK/UPPlatformSDK.framework/Versions/Current +++ /dev/null @@ -1 +0,0 @@ -A \ No newline at end of file