com.fitbit.api.common.model.foods
Class NutritionalValues

java.lang.Object
  extended by com.fitbit.api.common.model.foods.NutritionalValues
Direct Known Subclasses:
FoodsSummary

public class NutritionalValues
extends Object

User: gkutlu Date: Sep 17, 2010 Time: 1:41:26 PM


Constructor Summary
NutritionalValues(int calories, double fat, double fiber, double carbs, double sodium, double protein)
           
NutritionalValues(org.json.JSONObject json)
           
 
Method Summary
 int getCalories()
           
 double getCarbs()
           
 double getFat()
           
 double getFiber()
           
 double getProtein()
           
 double getSodium()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NutritionalValues

public NutritionalValues(int calories,
                         double fat,
                         double fiber,
                         double carbs,
                         double sodium,
                         double protein)

NutritionalValues

public NutritionalValues(org.json.JSONObject json)
                  throws org.json.JSONException
Throws:
org.json.JSONException
Method Detail

getCalories

public int getCalories()

getFat

public double getFat()

getFiber

public double getFiber()

getCarbs

public double getCarbs()

getSodium

public double getSodium()

getProtein

public double getProtein()


Copyright © 2012. All Rights Reserved.