ProductImprovement enum
Possible improvements on a Product given its current data
Values
- ORIGINS_TO_BE_COMPLETED → const ProductImprovement
-
Possible message: “The Eco-Score takes into account the origins of the ingredients. Please take them into a photo (ingredient list and/or any geographic claim or edit the product so that they can be taken into account. If it is not clear, you can contact the food producer.”
const ProductImprovement(category: ProductImprovementCategory.ECO_SCORE)
- CATEGORIES_BUT_NO_NUTRISCORE → const ProductImprovement
-
We could not compute an Nutri-Score for this product. It might be that the category is an exception. If you believe this is an error, you can email contact@thenameofyourapp.org List of exceptions: https://www.santepubliquefrance.fr/content/download/150262/file/QR_scientifique_technique_150421.pdf You can get states with https://world.openfoodfacts.org/api/v0/product/3414280980209.json?fields=ecoscore_grade,states_tags Add a message if we have a category but no nutrition
const ProductImprovement(category: ProductImprovementCategory.NUTRI_SCORE)
- ADD_NUTRITION_FACTS → const ProductImprovement
-
Possible message: “Add nutrition facts to compute the Nutri-Score” Add a one-click option to indicate no nutrition facts on the packaging This product doesn't have nutrition facts Add a message if we have nutrition but no category
const ProductImprovement(category: ProductImprovementCategory.NUTRI_SCORE)
- ADD_CATEGORY → const ProductImprovement
-
Possible message: “Add a category to compute the Nutri-Score” Help the user add the category if it is missing You can use our Robotoff API to get your users to validate a prediction Robotoff Questions Add a message if we have no category and no nutrition
const ProductImprovement(category: ProductImprovementCategory.NUTRI_SCORE)
- ADD_NUTRITION_FACTS_AND_CATEGORY → const ProductImprovement
-
Prompt: “Add nutrition facts and a category to compute the Nutri-Score” Add a one-click option to indicate no nutrition facts on the packaging This product doesn't have nutrition facts Add a message if the nutrition image is missing
const ProductImprovement(category: ProductImprovementCategory.NUTRI_SCORE)
- OBSOLETE_NUTRITION_IMAGE → const ProductImprovement
-
Add a message if the nutrition image is obsolete using the image refresh API https://github.com/openfoodfacts/api-documentation/issues/15
const ProductImprovement(category: ProductImprovementCategory.NUTRI_SCORE)
Properties
- category → ProductImprovementCategory
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCategory(
) → ProductImprovementCategory -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ProductImprovement> - A constant List of the values in this enum, in order of their declaration.