com.fitbit.api.common.model.activities
Class LoggedActivityReference

java.lang.Object
  extended by com.fitbit.api.common.model.activities.ActivityReference
      extended by com.fitbit.api.common.model.activities.LoggedActivityReference
Direct Known Subclasses:
ActivityLog

public class LoggedActivityReference
extends ActivityReference


Constructor Summary
LoggedActivityReference(org.json.JSONObject json)
           
LoggedActivityReference(long activityId, String name, String description, Long activityParentId, String activityParentName, int calories, int duration, Double distance, Integer steps)
           
 
Method Summary
static List<LoggedActivityReference> constructLoggedActivityReferenceList(Response res)
           
 int getCalories()
           
 Double getDistance()
           
 int getDuration()
           
 Integer getSteps()
           
 
Methods inherited from class com.fitbit.api.common.model.activities.ActivityReference
constructActivityReferenceList, getActivityId, getActivityParentId, getActivityParentName, getDescription, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggedActivityReference

public LoggedActivityReference(long activityId,
                               String name,
                               String description,
                               Long activityParentId,
                               String activityParentName,
                               int calories,
                               int duration,
                               Double distance,
                               Integer steps)

LoggedActivityReference

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

constructLoggedActivityReferenceList

public static List<LoggedActivityReference> constructLoggedActivityReferenceList(Response res)
                                                                          throws FitbitAPIException
Throws:
FitbitAPIException

getCalories

public int getCalories()

getDuration

public int getDuration()

getDistance

public Double getDistance()

getSteps

public Integer getSteps()


Copyright © 2012. All Rights Reserved.