Back to project page DashBit.
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.
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"; } }