Android Open Source - DashBit Activities






From Project

Back to project page DashBit.

License

The source code is released under:

Apache License

If you think the Android project DashBit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.jasonphanley.dashbit.model;
/*from w w  w. j  a  v a  2s.  com*/
public class Activities {
    
    public final int steps;
    
    public final int floors;
    
    public final float distance;
    
    public final int calories;
    
    public final Units units;
    
    public Activities(int steps, int floors, float distance, int calories,
            Units units) {
        super();
        
        this.steps = steps;
        this.floors = floors;
        this.distance = distance;
        this.calories = calories;
        this.units = units;
    }
    
    @Override
    public String toString() {
        return steps + " steps, " + floors + " floors, " + distance
                + " " + (units == Units.US ? "miles" : "kilometers")
                + ", " + calories + " calories";
    }
    
}




Java Source Code List

com.jasonphanley.dashbit.api.FitbitApi.java
com.jasonphanley.dashbit.api.FitbitClient.java
com.jasonphanley.dashbit.api.FitbitUtil.java
com.jasonphanley.dashbit.app.App.java
com.jasonphanley.dashbit.app.AuthActivity.java
com.jasonphanley.dashbit.app.FitbitExtension.java
com.jasonphanley.dashbit.app.PrefsActivity.java
com.jasonphanley.dashbit.app.PrefsFragment.java
com.jasonphanley.dashbit.model.Activities.java
com.jasonphanley.dashbit.model.Units.java