Inherits from UPGenericEvent : UPBaseEvent : NSObject
Declared in UPBodyEventAPI.h
UPBodyEventAPI.m

Overview

A body event describes body characteristics, like weight and body fat.

Properties

bmi

Body Mass Index.

@property (nonatomic, strong) NSNumber *bmi

Discussion

Body Mass Index.

Declared In

UPBodyEventAPI.h

bodyFat

Body fat percentage.

@property (nonatomic, strong) NSNumber *bodyFat

Discussion

Body fat percentage.

Declared In

UPBodyEventAPI.h

leanMass

Lean mass percentage.

@property (nonatomic, strong) NSNumber *leanMass

Discussion

Lean mass percentage.

Declared In

UPBodyEventAPI.h

weight

Weight in kilograms.

@property (nonatomic, strong) NSNumber *weight

Discussion

Weight in kilograms.

Declared In

UPBodyEventAPI.h

Class Methods

eventWithTitle:weight:bodyFat:leanMass:bmi:note:image:

Create a new body event with supplied parameters for the currently authenticated user.

+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note image:(UPImage *)image

Parameters

title

Title of the new event.

weight

Weight in kilograms.

bodyFat

Body fat percentage.

leanMass

Lean mass percentage.

bmi

Body Mass Index.

note

Notes associated with the event.

image

Image to include in the event.

Discussion

Create a new body event with supplied parameters for the currently authenticated user.

Declared In

UPBodyEventAPI.h

eventWithTitle:weight:bodyFat:leanMass:bmi:note:imageURL:

Create a new body event with supplied parameters for the currently authenticated user.

+ (UPBodyEvent *)eventWithTitle:(NSString *)title weight:(NSNumber *)weight bodyFat:(NSNumber *)bodyFat leanMass:(NSNumber *)leanMass bmi:(NSNumber *)bmi note:(NSString *)note imageURL:(NSString *)imageURL

Parameters

title

Title of the new event.

weight

Weight in kilograms.

bodyFat

Body fat percentage.

leanMass

Lean mass percentage.

bmi

Body Mass Index.

note

Notes associated with the event.

image

URL of the image to include in the event.

Discussion

Create a new body event with supplied parameters for the currently authenticated user.

Declared In

UPBodyEventAPI.h

Instance Methods

apiType

- (NSString *)apiType

Declared In

UPBaseEventAPI.h

decodeFromDictionary:

- (void)decodeFromDictionary:(NSDictionary *)dictionary

Declared In

UPBaseEventAPI.h

encodeToDictionary

Encodes an object to a JSON dictionary.

- (NSDictionary *)encodeToDictionary

Discussion

Encodes an object to a JSON dictionary.

Declared In

UPBaseEventAPI.h