Store and get fcm cache by AccountId
(cherry picked from commit e327dff45a4fc67d0c5a2d2afe64fc4673e2eac1)
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
|
||||
import 'package:fcm/model/firebase_subscription.dart';
|
||||
import 'package:fcm/model/type_name.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_subscription.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/domain/model/register_new_token_request.dart';
|
||||
|
||||
abstract class FCMDatasource {
|
||||
Future<bool> storeStateToRefresh(TypeName typeName, jmap.State newState);
|
||||
Future<void> storeStateToRefresh(AccountId accountId, TypeName typeName, jmap.State newState);
|
||||
|
||||
Future<jmap.State> getStateToRefresh(TypeName typeName);
|
||||
Future<jmap.State> getStateToRefresh(AccountId accountId, TypeName typeName);
|
||||
|
||||
Future<bool> deleteStateToRefresh(TypeName typeName);
|
||||
Future<void> deleteStateToRefresh(AccountId accountId, TypeName typeName);
|
||||
|
||||
Future<void> storeSubscription(FCMSubscriptionCache fcmSubscriptionCache);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user