TF-1205: rename class

This commit is contained in:
ManhNTX
2022-11-22 13:56:41 +07:00
committed by Dat H. Pham
parent 036ebbeb2f
commit d2da7f23b1
47 changed files with 352 additions and 390 deletions
@@ -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);
}
}