Class HealthData

java.lang.Object
com.example.cardiotracker.HealthData

public class HealthData extends Object
The HealthData class represents a data model for health-related information, including the date, time, diastolic pressure, systolic pressure, heart rate, and comment. It provides getter methods to access the individual data attributes.
  • Field Details

    • date

      private String date
    • time

      private String time
    • diastolicPressure

      private String diastolicPressure
    • systolicPressure

      private String systolicPressure
    • heartRate

      private String heartRate
    • comment

      private String comment
  • Constructor Details

    • HealthData

      public HealthData(String date, String time, String diastolicPressure, String systolicPressure, String heartRate, String comment)
      Constructs a HealthData object with the provided data.
      Parameters:
      date - the date of the health data
      time - the time of the health data
      diastolicPressure - the diastolic pressure value
      systolicPressure - the systolic pressure value
      heartRate - the heart rate value
      comment - the comment associated with the health data
  • Method Details

    • getDate

      public String getDate()
      Returns the date of the health data.
      Returns:
      the date of the health data
    • getTime

      public String getTime()
      Returns the time of the health data.
      Returns:
      the time of the health data
    • getDiastolicPressure

      public String getDiastolicPressure()
      Returns the diastolic pressure value.
      Returns:
      the diastolic pressure value
    • getSystolicPressure

      public String getSystolicPressure()
      Returns the systolic pressure value.
      Returns:
      the systolic pressure value
    • getHeartRate

      public String getHeartRate()
      Returns the heart rate value.
      Returns:
      the heart rate value
    • getComment

      public String getComment()
      Returns the comment associated with the health data.
      Returns:
      the comment associated with the health data