Inherits from UPBaseEvent : NSObject
Declared in UPMealAPI.h
UPMealAPI.m

Overview

Represents a single meal, consisting of multiple meal items.

Properties

drinkCount

The number of drink items in the meal.

@property (nonatomic, strong) NSNumber *drinkCount

Discussion

The number of drink items in the meal.

Declared In

UPMealAPI.h

foodCount

The number of food items in the meal.

@property (nonatomic, strong) NSNumber *foodCount

Discussion

The number of food items in the meal.

Declared In

UPMealAPI.h

items

The items of which the meal consists.

@property (nonatomic, strong) NSArray *items

Discussion

The items of which the meal consists.

Declared In

UPMealAPI.h

overallNutritionInfo

Overall nutrution info for the entire meal.

@property (nonatomic, strong) UPMealNutritionInfo *overallNutritionInfo

Discussion

Overall nutrution info for the entire meal.

Declared In

UPMealAPI.h

photo

The photo for the meal.

@property (nonatomic, strong) UPImage *photo

Discussion

The photo for the meal.

Declared In

UPMealAPI.h

photoURL

The photo URL for the meal.

@property (nonatomic, strong) NSString *photoURL

Discussion

The photo URL for the meal.

Declared In

UPMealAPI.h

placeAccuracy

The accuracy of the lat/long of the place the meal was created.

@property (nonatomic, strong) NSNumber *placeAccuracy

Discussion

The accuracy of the lat/long of the place the meal was created.

Declared In

UPMealAPI.h

placeLatitude

The latitude of the place the meal was created.

@property (nonatomic, strong) NSNumber *placeLatitude

Discussion

The latitude of the place the meal was created.

Declared In

UPMealAPI.h

placeLongitude

The longitude of the place the meal was created.

@property (nonatomic, strong) NSNumber *placeLongitude

Discussion

The longitude of the place the meal was created.

Declared In

UPMealAPI.h

placeName

The name of the place the meal was created.

@property (nonatomic, strong) NSString *placeName

Discussion

The name of the place the meal was created.

Declared In

UPMealAPI.h

subType

The sub type of the meal.

@property (nonatomic, assign) UPMealSubType subType

Discussion

The sub type of the meal.

Declared In

UPMealAPI.h

Class Methods

mealWithTitle:items:

Create a new meal event that can be posted to the user’s feed.

+ (UPMeal *)mealWithTitle:(NSString *)title items:(NSArray *)items

Parameters

title

New meal event.

items

The items that constitute the new meal.

Discussion

Create a new meal event that can be posted to the user’s feed.

Declared In

UPMealAPI.h

mealWithTitle:placeName:placeLatitude:placeLongitude:placeAccuracy:items:

Create a new meal event with specifed location that can be posted to the user’s feed.

+ (UPMeal *)mealWithTitle:(NSString *)title placeName:(NSString *)placeName placeLatitude:(NSNumber *)placeLatitude placeLongitude:(NSNumber *)placeLongitude placeAccuracy:(NSNumber *)placeAccuracy items:(NSArray *)items

Parameters

title

The title of the new meal event.

placeName

The name of the location.

placeLatitude

The latitude coordinate.

placeLongitude

The longitude coordinate.

placeAccuracy

The accuracy of the coordinates.

items

The items that constitute the new meal.

Discussion

Create a new meal event with specifed location that can be posted to the user’s feed.

Declared In

UPMealAPI.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