Added getter for comments
parent
3831f85eb8
commit
ad6e890f57
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue