UPMeal Class Reference
Inherits from | UPBaseEvent : NSObject |
Declared in | UPMealAPI.h UPMealAPI.m |
Tasks
Other Methods
-
+ mealWithTitle:items:
-
+ mealWithTitle:placeName:placeLatitude:placeLongitude:placeAccuracy:items:
-
overallNutritionInfo
property -
items
property -
placeName
property -
placeLatitude
property -
placeLongitude
property -
placeAccuracy
property -
foodCount
property -
drinkCount
property -
photo
property -
photoURL
property -
subType
property
Other Methods
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
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
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