Added getter for comments

main
Kai Mannweiler 2023-03-06 14:53:50 +01:00
parent 3831f85eb8
commit ad6e890f57
3 changed files with 3 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class Mood implements DatabaseRecord {
DateTime get date => _date;
int get moodValue => _moodValue;
String get comment => _comment;
@override
factory Mood.fromDatabase(Map<String, dynamic> map) {

View File

@ -9,6 +9,7 @@ class Relapse implements DatabaseRecord {
String get category => _category;
DateTime get date => _date;
String get comment => _comment;
@override
factory Relapse.fromDatabase(Map<String, dynamic> map) {

View File

@ -13,6 +13,7 @@ class Sleep implements DatabaseRecord {
this._wokeUpAt);
DateTime get date => _date;
String get comment => _comment;
int get sleepQualitiyValue => _sleepQualityValue;
TimeOfDay get sleepDuration => _sleptAt.durationBetween(_wokeUpAt);