Interface UserService.UserInfo

  • Enclosing interface:
    UserService

    public static interface UserService.UserInfo
    Represents user-specific information such as physiological data, personal goals, and other profile-related settings.
    • Method Detail

      • getAge

        int getAge()
        Returns the age.
        Returns:
        the age, in years
      • getHeight

        int getHeight()
        Returns the height.
        Returns:
        the height, in cm
      • getWeight

        int getWeight()
        Returns the weight.
        Returns:
        the weight, in grams
      • getMaxHeartRate

        int getMaxHeartRate()
        Returns the maximum heart rate.
        Returns:
        the maximum heart rate, in bpm
      • getNhanesRestingHeartRate

        int getNhanesRestingHeartRate()
        Returns the resting heart rate as measured in the study protocol of the National Health and Nutrition Examination Survey (NHANES).
        Returns:
        the NHANES resting heart rate, in bpm
      • getBasalRestingHeartRate

        int getBasalRestingHeartRate()
        Returns the basal resting heart rate (BHR).

        The basal resting heart rate is the lowest heart rate the body reaches at complete rest.

        Returns:
        the basal resting heart rate, in bpm
      • getHeartRateZones

        int[] getHeartRateZones()
        Returns the lower bound of each of the 5 heart rate zones.

        The array contains the lower HR bound of each zone, ordered from the lowest to the highest intensity.

        Returns:
        an array of heart rate zone lower bounds, in bpm
      • getBodyFat

        float getBodyFat()
        Returns body fat as a fraction of total mass.
        Returns:
        the body fat, as a fraction of total mass (0.0–1.0)
      • getVo2Max

        float getVo2Max()
        Returns the VO2 max.
        Returns:
        the VO2 max, in mL/(kg·min)
      • getStrideLength

        int getStrideLength()
        Returns the stride length (the distance the user covers with a single stride).
        Returns:
        the stride length, in cm
      • getStepsGoal

        int getStepsGoal()
        Returns the user's daily step goal.

        This represents the number of steps the user aims to achieve in a single day.

        Returns:
        the daily step goal set by the user
      • getCalorieGoal

        int getCalorieGoal()
        Returns the user's daily calories goal.

        This represents the number of calories the user aims to burn in a single day.

        Returns:
        the daily calories goal set by the user, in kcal
      • getSleepGoal

        int getSleepGoal()
        Returns the user's daily sleep goal.

        This represents the amount of sleep the user aims to achieve each night.

        Returns:
        the sleep goal, in seconds