Nutrition

data class Nutrition(val name: String? = null, val startTime: Instant, val endTime: Instant, val solidUnit: KHUnit.Mass = KHUnit.Mass.Gram, val energyUnit: KHUnit.Energy = KHUnit.Energy.KiloCalorie, val mealType: KHMealType, val biotin: Double? = null, val caffeine: Double? = null, val calcium: Double? = null, val chloride: Double? = null, val cholesterol: Double? = null, val chromium: Double? = null, val copper: Double? = null, val dietaryFiber: Double? = null, val energy: Double? = null, val folicAcid: Double? = null, val iodine: Double? = null, val iron: Double? = null, val magnesium: Double? = null, val manganese: Double? = null, val molybdenum: Double? = null, val monounsaturatedFat: Double? = null, val niacin: Double? = null, val pantothenicAcid: Double? = null, val phosphorus: Double? = null, val polyunsaturatedFat: Double? = null, val potassium: Double? = null, val protein: Double? = null, val riboflavin: Double? = null, val saturatedFat: Double? = null, val selenium: Double? = null, val sodium: Double? = null, val sugar: Double? = null, val thiamin: Double? = null, val totalCarbohydrate: Double? = null, val totalFat: Double? = null, val vitaminA: Double? = null, val vitaminB12: Double? = null, val vitaminB6: Double? = null, val vitaminC: Double? = null, val vitaminD: Double? = null, val vitaminE: Double? = null, val vitaminK: Double? = null, val zinc: Double? = null) : KHRecord

Captures what nutrients were consumed as part of a meal or a food item.

Parameters

name

Name for food or drink, provided by the user.

startTime

The start instant of the interval over which the value this record was captured

endTime

The end instant of the interval over which the value this record was captured

biotin

Biotin in KHUnit.Mass unit (Valid range: 0-100 grams)

caffeine

Caffeine in KHUnit.Mass unit (Valid range: 0-100 grams)

calcium

Calcium in KHUnit.Mass unit (Valid range: 0-100 grams)

chloride

Chloride in KHUnit.Mass unit (Valid range: 0-100 grams)

cholesterol

Cholesterol in KHUnit.Mass unit (Valid range: 0-100 grams)

chromium

Chromium in KHUnit.Mass unit (Valid range: 0-100 grams)

copper

Copper in KHUnit.Mass unit (Valid range: 0-100 grams)

dietaryFiber

Dietary fiber in KHUnit.Mass unit (Valid range: 0-100000 grams)

energy

Energy in KHUnit.Energy unit (Valid range: 0-100000 kcal)

folicAcid

Folic acid in KHUnit.Mass unit (Valid range: 0-100 grams)

iodine

Iodine in KHUnit.Mass unit (Valid range: 0-100 grams)

iron

Iron in KHUnit.Mass unit (Valid range: 0-100 grams)

magnesium

Magnesium in KHUnit.Mass unit (Valid range: 0-100 grams)

manganese

Manganese in KHUnit.Mass unit (Valid range: 0-100 grams)

molybdenum

Molybdenum in KHUnit.Mass unit (Valid range: 0-100 grams)

monounsaturatedFat

Monounsaturated fat in KHUnit.Mass unit (Valid range: 0-100000 grams)

niacin

Niacin in KHUnit.Mass unit (Valid range: 0-100 grams)

pantothenicAcid

Pantothenic acid in KHUnit.Mass unit (Valid range: 0-100 grams)

phosphorus

Phosphorus in KHUnit.Mass unit (Valid range: 0-100 grams)

polyunsaturatedFat

Polyunsaturated fat in KHUnit.Mass unit (Valid range: 0-100000 grams)

potassium

Potassium in KHUnit.Mass unit (Valid range: 0-100 grams)

protein

Protein in KHUnit.Mass unit (Valid range: 0-100000 grams)

riboflavin

Riboflavin in KHUnit.Mass unit (Valid range: 0-100 grams)

saturatedFat

Saturated fat in KHUnit.Mass unit (Valid range: 0-100000 grams)

selenium

Selenium in KHUnit.Mass unit (Valid range: 0-100 grams)

sodium

Sodium in KHUnit.Mass unit (Valid range: 0-100 grams)

sugar

Sugar in KHUnit.Mass unit (Valid range: 0-100000 grams)

thiamin

Thiamin in KHUnit.Mass unit (Valid range: 0-100 grams)

totalCarbohydrate

Total carbohydrate in KHUnit.Mass unit (Valid range: 0-100000 grams)

totalFat

Total fat in KHUnit.Mass unit (Valid range: 0-100000 grams)

vitaminA

Vitamin A in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminB12

Vitamin B12 in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminB6

Vitamin B6 in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminC

Vitamin C in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminD

Vitamin D in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminE

Vitamin E in KHUnit.Mass unit (Valid range: 0-100 grams)

vitaminK

Vitamin K in KHUnit.Mass unit (Valid range: 0-100 grams)

zinc

Zinc in KHUnit.Mass unit (Valid range: 0-100 grams)

Constructors

Link copied to clipboard
constructor(name: String? = null, startTime: Instant, endTime: Instant, solidUnit: KHUnit.Mass = KHUnit.Mass.Gram, energyUnit: KHUnit.Energy = KHUnit.Energy.KiloCalorie, mealType: KHMealType, biotin: Double? = null, caffeine: Double? = null, calcium: Double? = null, chloride: Double? = null, cholesterol: Double? = null, chromium: Double? = null, copper: Double? = null, dietaryFiber: Double? = null, energy: Double? = null, folicAcid: Double? = null, iodine: Double? = null, iron: Double? = null, magnesium: Double? = null, manganese: Double? = null, molybdenum: Double? = null, monounsaturatedFat: Double? = null, niacin: Double? = null, pantothenicAcid: Double? = null, phosphorus: Double? = null, polyunsaturatedFat: Double? = null, potassium: Double? = null, protein: Double? = null, riboflavin: Double? = null, saturatedFat: Double? = null, selenium: Double? = null, sodium: Double? = null, sugar: Double? = null, thiamin: Double? = null, totalCarbohydrate: Double? = null, totalFat: Double? = null, vitaminA: Double? = null, vitaminB12: Double? = null, vitaminB6: Double? = null, vitaminC: Double? = null, vitaminD: Double? = null, vitaminE: Double? = null, vitaminK: Double? = null, zinc: Double? = null)

Properties

Link copied to clipboard
val biotin: Double? = null
Link copied to clipboard
val caffeine: Double? = null
Link copied to clipboard
val calcium: Double? = null
Link copied to clipboard
val chloride: Double? = null
Link copied to clipboard
val cholesterol: Double? = null
Link copied to clipboard
val chromium: Double? = null
Link copied to clipboard
val copper: Double? = null
Link copied to clipboard
val dietaryFiber: Double? = null
Link copied to clipboard
val endTime: Instant
Link copied to clipboard
val energy: Double? = null
Link copied to clipboard
Link copied to clipboard
val folicAcid: Double? = null
Link copied to clipboard
val iodine: Double? = null
Link copied to clipboard
val iron: Double? = null
Link copied to clipboard
val magnesium: Double? = null
Link copied to clipboard
val manganese: Double? = null
Link copied to clipboard
Link copied to clipboard
val molybdenum: Double? = null
Link copied to clipboard
Link copied to clipboard
val name: String? = null
Link copied to clipboard
val niacin: Double? = null
Link copied to clipboard
val pantothenicAcid: Double? = null
Link copied to clipboard
val phosphorus: Double? = null
Link copied to clipboard
Link copied to clipboard
val potassium: Double? = null
Link copied to clipboard
val protein: Double? = null
Link copied to clipboard
val riboflavin: Double? = null
Link copied to clipboard
val saturatedFat: Double? = null
Link copied to clipboard
val selenium: Double? = null
Link copied to clipboard
val sodium: Double? = null
Link copied to clipboard
Link copied to clipboard
val startTime: Instant
Link copied to clipboard
val sugar: Double? = null
Link copied to clipboard
val thiamin: Double? = null
Link copied to clipboard
Link copied to clipboard
val totalFat: Double? = null
Link copied to clipboard
val vitaminA: Double? = null
Link copied to clipboard
val vitaminB12: Double? = null
Link copied to clipboard
val vitaminB6: Double? = null
Link copied to clipboard
val vitaminC: Double? = null
Link copied to clipboard
val vitaminD: Double? = null
Link copied to clipboard
val vitaminE: Double? = null
Link copied to clipboard
val vitaminK: Double? = null
Link copied to clipboard
val zinc: Double? = null