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
  • Field Details

    • KEY_DEFAULT_USERPROFILEKEY

      public static final String KEY_DEFAULT_USERPROFILEKEY
      Default IPC key
      See Also:
    • gender

      User AntPlusWeightScalePcc.Gender, -1 = 'Unassigned'.
    • age

      public int age
      User age, -1 = 'Unassigned'. Units: years
    • height

      public int height
      User height, -1 = 'Unassigned'. Units: cm
    • activityLevel

      public int activityLevel
      User activity level, ranging from 0 (sedentary) to 6 (regular), -1 = 'Unassigned'.
    • lifetimeAthlete

      public boolean lifetimeAthlete
      Indicates whether the user is a lifetime athlete (true) or not (false).
    • CREATOR

      public static final android.os.Parcelable.Creator<AntPlusWeightScalePcc.UserProfile> 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 interface android.os.Parcelable
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable