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

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

public class FoodUnit
extends Object

User: gkutlu Date: Sep 11, 2010 Time: 11:55:00 AM


Constructor Summary
FoodUnit(int id, String name, String plural)
           
FoodUnit(org.json.JSONObject json)
           
 
Method Summary
static List<FoodUnit> constructFoodUnitList(Response res)
           
 boolean equals(Object o)
           
 long getId()
           
 String getName()
           
 String getPlural()
           
 int hashCode()
           
static List<FoodUnit> jsonArrayToFoodUnitList(org.json.JSONArray array)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoodUnit

public FoodUnit(int id,
                String name,
                String plural)

FoodUnit

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

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.