com.fitbit.api.common.model.foods
Class LoggedFood
java.lang.Object
com.fitbit.api.common.model.foods.LoggedFood
public class LoggedFood
- extends Object
User: gkutlu
Date: May 22, 2010
Time: 4:27:21 PM
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.