From ad6e890f57601792c941bf3b9a643007b0eaf390 Mon Sep 17 00:00:00 2001 From: "k.mannweiler" <2012491@stud.hs-mannheim.de> Date: Mon, 6 Mar 2023 14:53:50 +0100 Subject: [PATCH] Added getter for comments --- lib/models/mood.dart | 1 + lib/models/relapse.dart | 1 + lib/models/sleep.dart | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/models/mood.dart b/lib/models/mood.dart index 9d34051..27a41d0 100644 --- a/lib/models/mood.dart +++ b/lib/models/mood.dart @@ -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 map) { diff --git a/lib/models/relapse.dart b/lib/models/relapse.dart index 1507188..6bb6ea0 100644 --- a/lib/models/relapse.dart +++ b/lib/models/relapse.dart @@ -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 map) { diff --git a/lib/models/sleep.dart b/lib/models/sleep.dart index 991de20..e6a0b80 100644 --- a/lib/models/sleep.dart +++ b/lib/models/sleep.dart @@ -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);