Wire reminder scheduler interface into local repository

This commit is contained in:
Rijad Zuzo
2026-02-15 20:16:38 +01:00
parent f1442e89d8
commit 5228799abb
6 changed files with 141 additions and 5 deletions
@@ -0,0 +1,21 @@
import 'package:relationship_saver/features/local/local_models.dart';
/// Schedules and reconciles reminder deliveries for current local state.
abstract class ReminderScheduler {
/// Reconciles platform schedules to match current enabled reminders.
Future<void> reconcile(List<ReminderRule> reminders);
/// Clears all platform-scheduled reminder jobs.
Future<void> clearAll();
}
/// Default scheduler used until platform notifications are integrated.
class NoopReminderScheduler implements ReminderScheduler {
const NoopReminderScheduler();
@override
Future<void> clearAll() async {}
@override
Future<void> reconcile(List<ReminderRule> reminders) async {}
}