TF-1205: rename class
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import 'package:model/fcm/fcm_token_dto.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_token_cache.dart';
|
||||
|
||||
extension FCMCacheExtension on FCMTokenCache {
|
||||
FCMTokenDto toFCMDto() {
|
||||
return FCMTokenDto(
|
||||
token,
|
||||
accountId,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:model/fcm/fcm_token_dto.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/fcm_token_cache.dart';
|
||||
|
||||
extension FCMExtensions on FCMTokenDto {
|
||||
FCMTokenCache toCache() {
|
||||
return FCMTokenCache(
|
||||
token,
|
||||
accountId,
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
|
||||
import 'package:model/firebase/firebase_dto.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/firebase_cache.dart';
|
||||
|
||||
extension FirebaseCacheExtension on FirebaseCache {
|
||||
|
||||
FirebaseDto toFirebaseDto() {
|
||||
return FirebaseDto(token);
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import 'package:model/firebase/firebase_dto.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/data/model/firebase_cache.dart';
|
||||
|
||||
extension FirebaseExtensions on FirebaseDto {
|
||||
FirebaseCache toCache() {
|
||||
return FirebaseCache(token);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user