import 'package:smoke_cess_app/interface/db_record.dart'; import 'package:smoke_cess_app/models/mood.dart'; import 'package:smoke_cess_app/models/sleep.dart'; class DatabaseMock { final List _moodRecords = []; final List _sleepRecords = []; final List _workoutRecords = []; void saveRecord(DatabaseRecord record) { if (record is Mood) { _moodRecords.add(record); } else if (record is Sleep) { _sleepRecords.add(record); } else { _workoutRecords.add(record); } } List getMoodRecords() => _moodRecords; List getSleepRecords() => _sleepRecords; List getWorkoutRecords() => _workoutRecords; }