Product

class Product : SearchProduct

Constructors

Link copied to clipboard
fun Product()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun getAttributeGroups(language: String): List<AttributeGroup>
Link copied to clipboard
fun getAvailableLanguageForImage(type: ProductImageField, size: ImageSize): List<String>
Link copied to clipboard
fun getGenericName(languageCode: String): String?
Link copied to clipboard
fun getImageDetails(imageKey: String): Map<String, *>?
Link copied to clipboard
fun getImageFrontUrl(languageCode: String?): String?
Link copied to clipboard
fun getImageNutritionUrl(languageCode: String?): String?
Link copied to clipboard
fun getIngredientsText(languageCode: String): String?
Link copied to clipboard
fun getNutritionGradeTag(): String?
Link copied to clipboard
fun getProductName(languageCode: String): String?

Get the product name for the specified language code. If null return default product name.

Link copied to clipboard
fun hasProductNameIn(languageCode: String?): Boolean
Link copied to clipboard
fun isLanguageSupported(languageCode: String): Boolean
Link copied to clipboard
fun isNoNutrition(): Boolean
Link copied to clipboard
fun setAdditionalProperty(name: String, value: Any?)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val additionalProperties: HashMap<String, Any?>
Link copied to clipboard
val additivesTags: MutableList<String>
Link copied to clipboard
val allergens: String? = null
Link copied to clipboard
val allergensHierarchy: ArrayList<String>
Link copied to clipboard
val allergensTags: ArrayList<String>
Link copied to clipboard
var aminoAcidTags: ArrayList<String>
Link copied to clipboard
val barcode: Barcode
Link copied to clipboard
var brands: String? = null

A string containing the brands, comma separated

Link copied to clipboard
val brandsTags: ArrayList<String>
Link copied to clipboard
val categoriesTags: List<String>? = null
Link copied to clipboard
val citiesTags: ArrayList<Any>
Link copied to clipboard
lateinit var code: String
Link copied to clipboard
val conservationConditions: String? = null
Link copied to clipboard
val countries: String? = null

The countries where the product is sold.

Link copied to clipboard
val countriesTags: List<String>? = null
Link copied to clipboard
val createdDateTime: String? = null
Link copied to clipboard
val creator: String? = null
Link copied to clipboard
val ecoscore: String? = null
Link copied to clipboard
val editors: ArrayList<String>
Link copied to clipboard
val embTags: ArrayList<Any>
Link copied to clipboard
val environmentImpactLevelTags: List<String>? = null
Link copied to clipboard
val environmentInfoCard: String? = null
Link copied to clipboard
val genericName: String? = null
Link copied to clipboard
val imageFrontUrl: String? = null
Link copied to clipboard
val imageIngredientsUrl: String? = null
Link copied to clipboard
val imageNutritionUrl: String? = null
Link copied to clipboard
val imagePackagingUrl: String? = null
Link copied to clipboard
val imageSmallUrl: String? = null
Link copied to clipboard
var imageUrl: String? = null
Link copied to clipboard
val ingredients: ArrayList<ProductIngredient>
Link copied to clipboard
val ingredientsAnalysisTags: ArrayList<String>
Link copied to clipboard
val ingredientsFromOrThatMayBeFromPalmOilN: Long = 0
Link copied to clipboard
val ingredientsFromPalmOilN: Long = 0
Link copied to clipboard
val ingredientsText: String? = null
Link copied to clipboard
val ingredientsThatMayBeFromPalmOilTags: ArrayList<String>
Link copied to clipboard
val labelsHierarchy: List<String>? = null
Link copied to clipboard
val labelsTags: List<String>? = null
Link copied to clipboard
var lang: String
Link copied to clipboard
val lastModifiedBy: String? = null
Link copied to clipboard
val lastModifiedTime: String? = null
Link copied to clipboard
val manufacturerUrl: String? = null
Link copied to clipboard
val manufacturingPlaces: String? = null
Link copied to clipboard
var mineralTags: ArrayList<String>
Link copied to clipboard
val noNutritionData: String? = null
Link copied to clipboard
val novaGroups: String? = null
Link copied to clipboard
val nutrientLevels: NutrientLevels? = null

The nutrientLevels

Link copied to clipboard
var nutriments: ProductNutriments

The nutriments

Link copied to clipboard
val nutritionDataPer: String? = null
Link copied to clipboard
val nutritionGradeFr: String? = null
Link copied to clipboard
val origins: String? = null
Link copied to clipboard
val otherInformation: String? = null
Link copied to clipboard
var otherNutritionTags: ArrayList<String>
Link copied to clipboard
val packaging: String? = null
Link copied to clipboard
val productName: String? = null

Get the default product name.

Link copied to clipboard
val purchasePlaces: String? = null
Link copied to clipboard
val quantity: String? = null
Link copied to clipboard
val recyclingInstructionsToDiscard: String? = null
Link copied to clipboard
val recyclingInstructionsToRecycle: String? = null
Link copied to clipboard
val selectedImages: Map<String, Map<String, Map<String, String>>>? = null
Link copied to clipboard
val servingSize: String? = null
Link copied to clipboard
val statesTags: ArrayList<String>
Link copied to clipboard
val stores: String? = null
Link copied to clipboard
val traces: String? = null
Link copied to clipboard
val tracesTags: ArrayList<String>
Link copied to clipboard
val url: String? = null
Link copied to clipboard
var vitaminTags: ArrayList<String>
Link copied to clipboard
val warning: String? = null

Extensions

Link copied to clipboard
fun Product.getImageStringKey(field: ProductImageField): String
Link copied to clipboard
fun Product.isPerServingInLiter(): Boolean?