UPMealItem Class Reference
| Inherits from | NSObject |
| Conforms to | UPBaseObject |
| Declared in | UPMealAPI.h UPMealAPI.m |
Tasks
Other Methods
-
+ mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo: -
nameproperty -
itemDescriptionproperty -
amountproperty -
measurementUnitsproperty -
servingTypeproperty -
foodTypeproperty -
categoryproperty -
nutritionInfoproperty
Other Methods
Properties
amount
The amount of this meal item in the overall meal.
@property (nonatomic, strong) NSNumber *amountDiscussion
The amount of this meal item in the overall meal.
Declared In
UPMealAPI.hcategory
The category of the meal item.
@property (nonatomic, strong) NSString *categoryDiscussion
The category of the meal item.
Declared In
UPMealAPI.hfoodType
The food type of the meal item.
@property (nonatomic, assign) UPMealItemFoodType foodTypeDiscussion
The food type of the meal item.
Declared In
UPMealAPI.hitemDescription
The description of the meal item.
@property (nonatomic, strong) NSString *itemDescriptionDiscussion
The description of the meal item.
Declared In
UPMealAPI.hmeasurementUnits
The unit of measurement that the amount represents.
@property (nonatomic, strong) NSString *measurementUnitsDiscussion
The unit of measurement that the amount represents.
Declared In
UPMealAPI.hname
The name of the meal item.
@property (nonatomic, strong) NSString *nameDiscussion
The name of the meal item.
Declared In
UPMealAPI.hClass Methods
mealItemWithName:description:amount:measurementUnits:servingType:foodType:nutritionInfo:
Create a new meal item that can be used inside a meal event.
+ (UPMealItem *)mealItemWithName:(NSString *)name description:(NSString *)description amount:(NSNumber *)amount measurementUnits:(NSString *)measurementUnits servingType:(UPMealItemServingType)servingType foodType:(UPMealItemFoodType)foodType nutritionInfo:(UPMealNutritionInfo *)nutritionInfoParameters
- name
The name of the new meal item.
- description
The description of the new meal item.
- amount
The amount or quantity of the new meal item.
- measurementUnits
The unit of measurement for the new meal item.
- servingType
The serving type of the new meal item.
- foodType
The food type of the new meal item.
- nutritionInfo
The nutrition information for the new item.
Discussion
Create a new meal item that can be used inside a meal event.
Declared In
UPMealAPI.h