com.fitbit.api.common.model.foods
Class FoodUnit
java.lang.Object
com.fitbit.api.common.model.foods.FoodUnit
public class FoodUnit
- extends Object
User: gkutlu
Date: Sep 11, 2010
Time: 11:55:00 AM
FoodUnit
public FoodUnit(int id,
String name,
String plural)
FoodUnit
public FoodUnit(org.json.JSONObject json)
throws org.json.JSONException
- Throws:
org.json.JSONException
constructFoodUnitList
public static List<FoodUnit> constructFoodUnitList(Response res)
throws FitbitAPIException
- Throws:
FitbitAPIException
jsonArrayToFoodUnitList
public static List<FoodUnit> jsonArrayToFoodUnitList(org.json.JSONArray array)
throws org.json.JSONException
- Throws:
org.json.JSONException
getId
public long getId()
getName
public String getName()
getPlural
public String getPlural()
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2012. All Rights Reserved.