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