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

java.lang.Object
  extended by com.fitbit.api.common.model.foods.LoggedFood

public class LoggedFood
extends Object

User: gkutlu Date: May 22, 2010 Time: 4:27:21 PM


Constructor Summary
LoggedFood(org.json.JSONObject json)
           
LoggedFood(long foodId, String name, String brand, String accessLevel, int calories, double amount, FoodUnit unit, byte mealTypeId, int[] units)
           
 
Method Summary
static List<LoggedFood> constructLoggedFoodReferenceList(Response res)
           
 String getAccessLevel()
           
 double getAmount()
           
 String getBrand()
           
 int getCalories()
           
 long getFoodId()
           
 byte getMealTypeId()
           
 String getName()
           
 FoodUnit getUnit()
           
 int[] getUnits()
           
static List<LoggedFood> jsonArrayToLoggedFoodReferenceList(org.json.JSONArray array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedFood

public LoggedFood(long foodId,
                  String name,
                  String brand,
                  String accessLevel,
                  int calories,
                  double amount,
                  FoodUnit unit,
                  byte mealTypeId,
                  int[] units)

LoggedFood

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

constructLoggedFoodReferenceList

public static List<LoggedFood> constructLoggedFoodReferenceList(Response res)
                                                         throws FitbitAPIException
Throws:
FitbitAPIException

jsonArrayToLoggedFoodReferenceList

public static List<LoggedFood> jsonArrayToLoggedFoodReferenceList(org.json.JSONArray array)
                                                           throws org.json.JSONException
Throws:
org.json.JSONException

getCalories

public final int getCalories()

getAmount

public final double getAmount()

getUnit

public final FoodUnit getUnit()

getMealTypeId

public final byte getMealTypeId()

getFoodId

public long getFoodId()

getName

public String getName()

getBrand

public String getBrand()

getAccessLevel

public String getAccessLevel()

getUnits

public int[] getUnits()


Copyright © 2012. All Rights Reserved.