Package openfoodfacts. github. scrachx. openfood. models
Types
Link copied to clipboard
data class AnnotationAnswer(val insightId: String, val value: AnnotationAnswer.Value)
Content copied to clipboard
Link copied to clipboard
data class AnnotationResponse( val status: String? = null, val description: String? = null, val statusCode: String? = null) : Serializable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Changelog(val versions: List<ChangelogVersion>) : Serializable
Content copied to clipboard
Link copied to clipboard
data class ChangelogVersion( val date: String, val code: Long, val name: String, val items: List<String>) : Serializable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class NutrientLevelItem( val category: String, val value: String, val label: String, @DrawableRes val icon: Int)
Content copied to clipboard
Link copied to clipboard
data class NutrientLevels( var salt: NutrimentLevel? = null, var fat: NutrimentLevel? = null, var sugars: NutrimentLevel? = null, var saturatedFat: NutrimentLevel? = null) : Serializable
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class NutrimentListItem( val title: CharSequence?, val valueStr: CharSequence?, val servingValueStr: CharSequence?, val unitStr: CharSequence?, val modifierStr: CharSequence?, val displayVolumeHeader: Boolean = false)
Content copied to clipboard
Use a round value for value and servingValue parameters
Link copied to clipboard
Link copied to clipboard
Kind of Product Image
Link copied to clipboard
data class ProductIngredient( val text: String? = null, val id: String, val rank: Long = -1, val percent: String? = null, val percentEstimate: Float? = null, val percentMin: Float? = null, val percentMax: Float? = null, val vegan: String? = null, val vegetarian: String? = null, val hasSubIngredients: String? = null) : Serializable
Content copied to clipboard
Represents an ingredient of the product
Link copied to clipboard
JSON representation of the product nutriments
entry.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QuestionsState(val status: String?, val questions: List<Question>?) : Serializable
Content copied to clipboard
Link copied to clipboard
data class Search( val pageSize: String, val count: String, val skip: Int, val page: Int, val products: List<SearchProduct> = arrayListOf()) : Serializable
Content copied to clipboard
Link copied to clipboard
data class SearchInfo( var searchType: SearchType, var searchQuery: String, var searchTitle: String = searchQuery) : Parcelable
Content copied to clipboard
Class that contains search information
Link copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
fun ProductNutriments.buildLevelItem( context: Context, nutriment: Nutriment, nutrimentLevel: NutrimentLevel?): NutrientLevelItem?
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun SearchProduct.getSelectedImageUrl( languageCode: String?, type: ProductImageField, size: ImageSize): String?
Content copied to clipboard
Link copied to clipboard