Methods
-
deleteMoodEntry({required MoodEntry entry})
→ Future<bool>
-
Deletes
entry from the backend. Assumes that entry already exists.
Will return true if entry was deleted, false otherwise.
-
getMoodEntries({Instant? startDate, Instant? endDate, User? user, int limit = 1000})
→ Future<BuiltList<MoodEntry>>
-
Retrieves a list of MoodEntry records from the backend.
startDate and
endDate are optional. If only one is given, the method will retrieve at
most 30 days from the given date. If user is specified, entries for that
user will be returned. By default the backend will return data for the
currently logged in user.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a non-existent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
updateMoodEntry({required MoodEntry entry})
→ Future<MoodEntry?>
-
Updates
entry in the backend. Assumes that entry already exists.
Will return null if entry does not exist or if the update fails.
-
uploadMoodEntry({required MoodEntry entry})
→ Future<MoodEntry?>
-
Uploads a l
MoodEntry to the backend. Returns created MoodEntry
on success, null on failure.