Skip to content

Commit

Permalink
Update UPPlatformSDK.framework in HelloUP.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Zdornyy committed Dec 5, 2013
1 parent 673c0fd commit 7c4832f
Show file tree
Hide file tree
Showing 33 changed files with 179 additions and 1,273 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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.
//

Expand Down
Binary file modified HelloUP/UPPlatformSDK.framework/Versions/A/UPPlatformSDK
Binary file not shown.
1 change: 0 additions & 1 deletion UPPlatformSDK/UPPlatformSDK.framework/Headers

This file was deleted.

1 change: 0 additions & 1 deletion UPPlatformSDK/UPPlatformSDK.framework/PrivateHeaders

This file was deleted.

1 change: 0 additions & 1 deletion UPPlatformSDK/UPPlatformSDK.framework/Resources

This file was deleted.

1 change: 0 additions & 1 deletion UPPlatformSDK/UPPlatformSDK.framework/UPPlatformSDK

This file was deleted.

21 changes: 0 additions & 21 deletions UPPlatformSDK/UPPlatformSDK.framework/Versions/A/Headers/UP.h

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7c4832f

Please sign in to comment.