Package com.example.cardiotracker
Class HealthData
java.lang.Object
com.example.cardiotracker.HealthData
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
date
-
time
-
diastolicPressure
-
systolicPressure
-
heartRate
-
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 datatime
- the time of the health datadiastolicPressure
- the diastolic pressure valuesystolicPressure
- the systolic pressure valueheartRate
- the heart rate valuecomment
- the comment associated with the health data
-
-
Method Details
-
getDate
Returns the date of the health data.- Returns:
- the date of the health data
-
getTime
Returns the time of the health data.- Returns:
- the time of the health data
-
getDiastolicPressure
Returns the diastolic pressure value.- Returns:
- the diastolic pressure value
-
getSystolicPressure
Returns the systolic pressure value.- Returns:
- the systolic pressure value
-
getHeartRate
Returns the heart rate value.- Returns:
- the heart rate value
-
getComment
Returns the comment associated with the health data.- Returns:
- the comment associated with the health data
-