Package com.dsi.ant.plugins.antplus.pcc
Class AntPlusWeightScalePcc.UserProfile
java.lang.Object
com.dsi.ant.plugins.antplus.pcc.AntPlusWeightScalePcc.UserProfile
- All Implemented Interfaces:
android.os.Parcelable
- Enclosing class:
- AntPlusWeightScalePcc
public static class AntPlusWeightScalePcc.UserProfile
extends Object
implements android.os.Parcelable
Represents data specific to the user of the weight scale
-
Nested Class Summary
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
User activity level, ranging from 0 (sedentary) to 6 (regular), -1 = 'Unassigned'.int
User age, -1 = 'Unassigned'.static final android.os.Parcelable.Creator<AntPlusWeightScalePcc.UserProfile>
CREATOR is used by Android parceling system.UserAntPlusWeightScalePcc.Gender
, -1 = 'Unassigned'.int
User height, -1 = 'Unassigned'.static final String
Default IPC keyboolean
Indicates whether the user is a lifetime athlete (true) or not (false).Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new user profile.UserProfile
(android.os.Parcel in) Parcel constructor -
Method Summary
Modifier and TypeMethodDescriptionint
int
Retrieves the user identifier that enables associating data with a specific user.void
writeToParcel
(android.os.Parcel dest, int flags)
-
Field Details
-
KEY_DEFAULT_USERPROFILEKEY
Default IPC key- See Also:
-
gender
UserAntPlusWeightScalePcc.Gender
, -1 = 'Unassigned'. -
age
public int ageUser age, -1 = 'Unassigned'. Units: years -
height
public int heightUser height, -1 = 'Unassigned'. Units: cm -
activityLevel
public int activityLevelUser activity level, ranging from 0 (sedentary) to 6 (regular), -1 = 'Unassigned'. -
lifetimeAthlete
public boolean lifetimeAthleteIndicates whether the user is a lifetime athlete (true) or not (false). -
CREATOR
CREATOR is used by Android parceling system.
-
-
Constructor Details
-
UserProfile
public UserProfile()Create a new user profile. The user profile ID is automaticatically generated within the valid range for 'mobile' displays -
UserProfile
public UserProfile(android.os.Parcel in) Parcel constructor- Parameters:
in
- Parcel with object data
-
-
Method Details
-
getUserProfileID
public int getUserProfileID()Retrieves the user identifier that enables associating data with a specific user. Handled internally by the plugin (i.e., not configurable), -1 = 'Unassigned'.- Returns:
- The user identifier that enables associating data with a specific user.
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-