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; DateTime get date => _date;
int get moodValue => _moodValue; int get moodValue => _moodValue;
String get comment => _comment;
@override @override
factory Mood.fromDatabase(Map<String, dynamic> map) { factory Mood.fromDatabase(Map<String, dynamic> map) {

View File

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

View File

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