TF-1289: [Data] implement storeSubscription in fcm repository

This commit is contained in:
HuyNguyen
2022-12-29 15:37:15 +07:00
committed by Dat Vu
parent 097682fdcf
commit 97a37e36be
6 changed files with 105 additions and 18 deletions
@@ -0,0 +1,10 @@
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_subscription.dart';
import 'package:tmail_ui_user/features/push_notification/domain/model/fcm_subscription.dart';
extension FCMSubscriptionExtension on FCMSubscription {
FCMSubscriptionCache toFCMSubscriptionCache() {
return FCMSubscriptionCache(deviceId, subscriptionId);
}
}