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

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

public class Serving
extends Object

Created by IntelliJ IDEA. User: Kiryl Date: 1/19/12 Time: 5:24 AM


Constructor Summary
Serving(int unitId, double servingSize, double multiplier, FoodUnit unit)
           
Serving(org.json.JSONObject jsonObject)
           
 
Method Summary
 double getMultiplier()
           
 double getServingSize()
           
 FoodUnit getUnit()
           
 int getUnitId()
           
static List<Serving> jsonArrayToServingList(org.json.JSONArray array)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Serving

public Serving(int unitId,
               double servingSize,
               double multiplier,
               FoodUnit unit)

Serving

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

jsonArrayToServingList

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

getUnitId

public int getUnitId()

getServingSize

public double getServingSize()

getMultiplier

public double getMultiplier()

getUnit

public FoodUnit getUnit()


Copyright © 2012. All Rights Reserved.