-
- All Implemented Interfaces:
-
java.io.Serializable
public class Nutrition extends Record implements Serializable
Activities related to calorie intake and consumption and nutritional information (such as fat, protein, carbohydrates, sodium, etc .).
-
-
Field Summary
Fields Modifier and Type Field Description private BigDecimal
calories
private BigDecimal
carbohydrates
private BigDecimal
fat
private BigDecimal
fiber
private BigDecimal
protein
private BigDecimal
sodium
private BigDecimal
water
private String
title
-
Constructor Summary
Constructors Constructor Description Nutrition()
Activities related to calorie intake and consumption and nutritional information (such as fat, protein, carbohydrates, sodium, etc.). Nutrition(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
Method Summary
Modifier and Type Method Description BigDecimal
getCalories()
Calories consumed per food intake void
setCalories(BigDecimal calories)
Calories consumed per food intake BigDecimal
getCarbohydrates()
Grams of carbohydrates consumed void
setCarbohydrates(BigDecimal carbohydrates)
Grams of carbohydrates consumed BigDecimal
getFat()
Grams of fat consumed void
setFat(BigDecimal fat)
Grams of fat consumed BigDecimal
getFiber()
Grams of fiber consumed void
setFiber(BigDecimal fiber)
Grams of fiber consumed BigDecimal
getProtein()
Grams of protein consumed void
setProtein(BigDecimal protein)
Grams of protein consumed BigDecimal
getSodium()
Grams of sodium consumed void
setSodium(BigDecimal sodium)
Grams of sodium consumed BigDecimal
getWater()
Milliliters of water consumed void
setWater(BigDecimal water)
Milliliters of water consumed String
getTitle()
Meal consumed: Breakfast, Lunch, or Dinner void
setTitle(String title)
Meal consumed: Breakfast, Lunch, or Dinner -
Methods inherited from class com.validic.mobile.record.Record
createSummary, getActivityID, getComment, getExtra, getExtras, getHashedString, getIdentifier, getIntermediarySource, getLastUpdated, getMedia, getOriginalSource, getPeripheral, getQueueId, getRecordID, getRecordType, getSource, getSourceName, getSourcePeripheral, getTimestamp, getUtcOffset, getValidated, isSHealthRecord, newRecordFromPeripheral, newRecordWithType, setActivityID, setComment, setHashedActivityId, setIntermediarySource, setLastUpdated, setMedia, setOriginalSource, setPeripheral, setRecordID, setRecordType, setSource, setSourceName, setSourcePeripheral, setTimeStampToMidnight, setTimestamp, setTimestamp, setUtcOffset, setValidated
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
Nutrition
Nutrition()
Activities related to calorie intake and consumption and nutritional information (such as fat, protein, carbohydrates, sodium, etc.).
-
Nutrition
Nutrition(Peripheral peripheral)
Base class for all objects that represent health records initialized with a BluetoothPeripheral.
-
-
Method Detail
-
getCalories
BigDecimal getCalories()
Calories consumed per food intake
-
setCalories
void setCalories(BigDecimal calories)
Calories consumed per food intake
-
getCarbohydrates
BigDecimal getCarbohydrates()
Grams of carbohydrates consumed
-
setCarbohydrates
void setCarbohydrates(BigDecimal carbohydrates)
Grams of carbohydrates consumed
-
getFat
BigDecimal getFat()
Grams of fat consumed
-
setFat
void setFat(BigDecimal fat)
Grams of fat consumed
-
getFiber
BigDecimal getFiber()
Grams of fiber consumed
-
setFiber
void setFiber(BigDecimal fiber)
Grams of fiber consumed
-
getProtein
BigDecimal getProtein()
Grams of protein consumed
-
setProtein
void setProtein(BigDecimal protein)
Grams of protein consumed
-
getSodium
BigDecimal getSodium()
Grams of sodium consumed
-
setSodium
void setSodium(BigDecimal sodium)
Grams of sodium consumed
-
getWater
BigDecimal getWater()
Milliliters of water consumed
-
setWater
void setWater(BigDecimal water)
Milliliters of water consumed
-
-
-
-