Package com.example.cardiacrecorder
Class RecordModel
java.lang.Object
com.example.cardiacrecorder.RecordModel
-
Constructor Summary
ConstructorsConstructorDescriptionRecordModel(String heartRate, String diastolic, String systolic, String comment, com.google.firebase.Timestamp timestamp) Constructs a new RecordModel object with the provided data. -
Method Summary
Modifier and TypeMethodDescriptioncom.google.firebase.TimestampvoidsetComment(String comment) voidsetDiastolic(String diastolic) voidsetHeartRate(String heartRate) voidsetSystolic(String systolic) voidsetTimestamp(com.google.firebase.Timestamp timestamp)
-
Constructor Details
-
RecordModel
public RecordModel() -
RecordModel
public RecordModel(String heartRate, String diastolic, String systolic, String comment, com.google.firebase.Timestamp timestamp) Constructs a new RecordModel object with the provided data.- Parameters:
heartRate- The heart rate value of the record.diastolic- The diastolic blood pressure value of the record.systolic- The systolic blood pressure value of the record.comment- The comment associated with the record.timestamp- The timestamp indicating the time of the record.
-
-
Method Details
-
getHeartRate
-
setHeartRate
-
getDiastolic
-
setDiastolic
-
getSystolic
-
setSystolic
-
getComment
-
setComment
-
getTimestamp
public com.google.firebase.Timestamp getTimestamp() -
setTimestamp
public void setTimestamp(com.google.firebase.Timestamp timestamp)
-