TF-2298 Update expires time when old token has expired
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit fb26afe8f52df6e16476aea8a68f9f92c5c4b001)
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteFirebaseRegistrationCacheLoading extends LoadingState {}
|
||||
|
||||
class DeleteFirebaseRegistrationCacheSuccess extends UIState {}
|
||||
|
||||
class DeleteFirebaseRegistrationCacheFailure extends FeatureFailure {
|
||||
|
||||
DeleteFirebaseRegistrationCacheFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DestroyFirebaseRegistrationLoading extends LoadingState {}
|
||||
|
||||
class DestroyFirebaseRegistrationSuccess extends UIState {}
|
||||
|
||||
class DestroyFirebaseRegistrationFailure extends FeatureFailure {
|
||||
|
||||
DestroyFirebaseRegistrationFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DestroySubscriptionLoading extends UIState {}
|
||||
|
||||
class DestroySubscriptionSuccess extends UIState {
|
||||
|
||||
final bool destroyedSubscription;
|
||||
|
||||
DestroySubscriptionSuccess(this.destroyedSubscription);
|
||||
|
||||
@override
|
||||
List<Object> get props => [destroyedSubscription];
|
||||
}
|
||||
|
||||
class DestroySubscriptionFailure extends FeatureFailure {
|
||||
|
||||
DestroySubscriptionFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/push_notification/domain/model/fcm_subscription.dart';
|
||||
|
||||
class GetFCMSubscriptionLocalLoading extends UIState {}
|
||||
|
||||
class GetFCMSubscriptionLocalSuccess extends UIState {
|
||||
|
||||
final FCMSubscription fcmSubscription;
|
||||
|
||||
GetFCMSubscriptionLocalSuccess(this.fcmSubscription);
|
||||
|
||||
@override
|
||||
List<Object> get props => [fcmSubscription];
|
||||
}
|
||||
|
||||
class GetFCMSubscriptionLocalFailure extends FeatureFailure {
|
||||
|
||||
GetFCMSubscriptionLocalFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:fcm/model/fcm_token.dart';
|
||||
import 'package:fcm/model/firebase_registration.dart';
|
||||
|
||||
class GetFirebaseRegistrationByDeviceIdLoading extends LoadingState {}
|
||||
|
||||
class GetFirebaseRegistrationByDeviceIdSuccess extends UIState {
|
||||
|
||||
final FirebaseRegistration firebaseRegistration;
|
||||
final FcmToken? newFcmToken;
|
||||
|
||||
GetFirebaseRegistrationByDeviceIdSuccess(this.firebaseRegistration, this.newFcmToken);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [firebaseRegistration, newFcmToken];
|
||||
}
|
||||
|
||||
class GetFirebaseRegistrationByDeviceIdFailure extends FeatureFailure {
|
||||
final FcmToken? newFcmToken;
|
||||
|
||||
GetFirebaseRegistrationByDeviceIdFailure(dynamic exception, this.newFcmToken) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [newFcmToken, ...super.props];
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:fcm/model/firebase_subscription.dart';
|
||||
|
||||
class GetFirebaseSubscriptionLoading extends UIState {}
|
||||
|
||||
class GetFirebaseSubscriptionSuccess extends UIState {
|
||||
|
||||
final FirebaseSubscription firebaseSubscription;
|
||||
|
||||
GetFirebaseSubscriptionSuccess(this.firebaseSubscription);
|
||||
|
||||
@override
|
||||
List<Object> get props => [firebaseSubscription];
|
||||
}
|
||||
|
||||
class GetFirebaseSubscriptionFailure extends FeatureFailure {
|
||||
|
||||
GetFirebaseSubscriptionFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:fcm/model/firebase_registration.dart';
|
||||
|
||||
class GetStoredFirebaseRegistrationLoading extends LoadingState {}
|
||||
|
||||
class GetStoredFirebaseRegistrationSuccess extends UIState {
|
||||
|
||||
final FirebaseRegistration firebaseRegistration;
|
||||
|
||||
GetStoredFirebaseRegistrationSuccess(this.firebaseRegistration);
|
||||
|
||||
@override
|
||||
List<Object> get props => [firebaseRegistration];
|
||||
}
|
||||
|
||||
class GetStoredFirebaseRegistrationFailure extends FeatureFailure {
|
||||
|
||||
GetStoredFirebaseRegistrationFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:fcm/model/firebase_registration.dart';
|
||||
|
||||
class RegisterNewFirebaseRegistrationTokenLoading extends LoadingState {}
|
||||
|
||||
class RegisterNewFirebaseRegistrationTokenSuccess extends UIState {
|
||||
|
||||
final FirebaseRegistration firebaseRegistration;
|
||||
|
||||
RegisterNewFirebaseRegistrationTokenSuccess(this.firebaseRegistration);
|
||||
|
||||
@override
|
||||
List<Object> get props => [firebaseRegistration];
|
||||
}
|
||||
|
||||
class RegisterNewFirebaseRegistrationTokenFailure extends FeatureFailure {
|
||||
|
||||
RegisterNewFirebaseRegistrationTokenFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:fcm/model/firebase_subscription.dart';
|
||||
|
||||
class RegisterNewTokenLoading extends UIState {}
|
||||
|
||||
class RegisterNewTokenSuccess extends UIState {
|
||||
|
||||
final FirebaseSubscription firebaseSubscription;
|
||||
|
||||
RegisterNewTokenSuccess(this.firebaseSubscription);
|
||||
|
||||
@override
|
||||
List<Object> get props => [firebaseSubscription];
|
||||
}
|
||||
|
||||
class RegisterNewTokenFailure extends FeatureFailure {
|
||||
|
||||
RegisterNewTokenFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class StoreFirebaseRegistrationLoading extends LoadingState {}
|
||||
|
||||
class StoreFirebaseRegistrationSuccess extends UIState {}
|
||||
|
||||
class StoreFirebaseRegistrationFailure extends FeatureFailure {
|
||||
|
||||
StoreFirebaseRegistrationFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class StoreSubscriptionLoading extends UIState {}
|
||||
|
||||
class StoreSubscriptionSuccess extends UIState {}
|
||||
|
||||
class StoreSubscriptionFailure extends FeatureFailure {
|
||||
|
||||
StoreSubscriptionFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class UpdateFirebaseRegistrationTokenLoading extends LoadingState {}
|
||||
|
||||
class UpdateFirebaseRegistrationTokenSuccess extends UIState {}
|
||||
|
||||
class UpdateFirebaseRegistrationTokenFailure extends FeatureFailure {
|
||||
|
||||
UpdateFirebaseRegistrationTokenFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user