com.fitbit.api.common.model.foods
Class Serving
java.lang.Object
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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.