21 lines
521 B
Dart
21 lines
521 B
Dart
|
|
import '../../core/storage/app_preferences.dart';
|
||
|
|
import '../models/reminder_payload.dart';
|
||
|
|
|
||
|
|
class IOSNotificationPayloadBridge {
|
||
|
|
final AppPreferences _prefs;
|
||
|
|
|
||
|
|
IOSNotificationPayloadBridge(this._prefs);
|
||
|
|
|
||
|
|
ReminderPayload? getPendingPayload() {
|
||
|
|
return _prefs.pendingNotificationPayload;
|
||
|
|
}
|
||
|
|
|
||
|
|
Future<void> setPendingPayload(ReminderPayload payload) {
|
||
|
|
return _prefs.setPendingNotificationPayload(payload);
|
||
|
|
}
|
||
|
|
|
||
|
|
Future<void> clearPendingPayload() {
|
||
|
|
return _prefs.clearPendingNotificationPayload();
|
||
|
|
}
|
||
|
|
}
|