TF-1708 Update props properties for all state object in interactor

(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
dab246
2023-07-07 13:07:53 +07:00
committed by Dat Vu
parent 24d7eee69a
commit 0583406e3b
142 changed files with 348 additions and 1092 deletions
@@ -13,10 +13,6 @@ class DeleteEmailStateToRefreshSuccess extends UIState {
}
class DeleteEmailStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
DeleteEmailStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteEmailStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -13,10 +13,6 @@ class DeleteMailboxStateToRefreshSuccess extends UIState {
}
class DeleteMailboxStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
DeleteMailboxStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -1,7 +1,6 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class DestroySubscriptionLoading extends UIState {}
class DestroySubscriptionSuccess extends UIState {
@@ -15,10 +14,6 @@ class DestroySubscriptionSuccess extends UIState {
}
class DestroySubscriptionFailure extends FeatureFailure {
final dynamic exception;
DestroySubscriptionFailure(this.exception);
@override
List<Object?> get props => [exception];
DestroySubscriptionFailure(dynamic exception) : super(exception: exception);
}
@@ -22,7 +22,4 @@ class GetEmailChangesToPushNotificationSuccess extends UIState {
class GetEmailChangesToPushNotificationFailure extends FeatureFailure {
GetEmailChangesToPushNotificationFailure(exception) : super(exception: exception);
@override
List<Object> get props => [exception];
}
@@ -18,7 +18,4 @@ class GetEmailChangesToRemoveNotificationSuccess extends UIState {
class GetEmailChangesToRemoveNotificationFailure extends FeatureFailure {
GetEmailChangesToRemoveNotificationFailure(exception) : super(exception: exception);
@override
List<Object> get props => [exception];
}
@@ -16,10 +16,6 @@ class GetEmailStateToRefreshSuccess extends UIState {
}
class GetEmailStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
GetEmailStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
GetEmailStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -16,10 +16,6 @@ class GetFCMSubscriptionLocalSuccess extends UIState {
}
class GetFCMSubscriptionLocalFailure extends FeatureFailure {
final dynamic exception;
GetFCMSubscriptionLocalFailure(this.exception);
@override
List<Object?> get props => [exception];
GetFCMSubscriptionLocalFailure(dynamic exception) : super(exception: exception);
}
@@ -16,10 +16,6 @@ class GetFirebaseSubscriptionSuccess extends UIState {
}
class GetFirebaseSubscriptionFailure extends FeatureFailure {
final dynamic exception;
GetFirebaseSubscriptionFailure(this.exception);
@override
List<Object> get props => [exception];
GetFirebaseSubscriptionFailure(dynamic exception) : super(exception: exception);
}
@@ -16,10 +16,6 @@ class GetMailboxStateToRefreshSuccess extends UIState {
}
class GetMailboxStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
GetMailboxStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
GetMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -18,7 +18,4 @@ class GetMailboxesNotPutNotificationsSuccess extends UIState {
class GetMailboxesNotPutNotificationsFailure extends FeatureFailure {
GetMailboxesNotPutNotificationsFailure(exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -22,7 +22,4 @@ class GetNewReceiveEmailFromNotificationSuccess extends UIState {
class GetNewReceiveEmailFromNotificationFailure extends FeatureFailure {
GetNewReceiveEmailFromNotificationFailure(exception) : super(exception: exception);
@override
List<Object> get props => [exception];
}
@@ -16,10 +16,6 @@ class GetStoredEmailDeliveryStateSuccess extends UIState {
}
class GetStoredEmailDeliveryStateFailure extends FeatureFailure {
final dynamic exception;
GetStoredEmailDeliveryStateFailure(this.exception);
@override
List<Object?> get props => [exception];
GetStoredEmailDeliveryStateFailure(dynamic exception) : super(exception: exception);
}
@@ -16,10 +16,6 @@ class RegisterNewTokenSuccess extends UIState {
}
class RegisterNewTokenFailure extends FeatureFailure {
final dynamic exception;
RegisterNewTokenFailure(this.exception);
@override
List<Object?> get props => [exception];
RegisterNewTokenFailure(dynamic exception) : super(exception: exception);
}
@@ -4,19 +4,9 @@ import 'package:core/presentation/state/success.dart';
class StoreEmailDeliveryStateLoading extends UIState {}
class StoreEmailDeliveryStateSuccess extends UIState {
StoreEmailDeliveryStateSuccess();
@override
List<Object> get props => [];
}
class StoreEmailDeliveryStateSuccess extends UIState {}
class StoreEmailDeliveryStateFailure extends FeatureFailure {
final dynamic exception;
StoreEmailDeliveryStateFailure(this.exception);
@override
List<Object?> get props => [exception];
StoreEmailDeliveryStateFailure(dynamic exception) : super(exception: exception);
}
@@ -4,19 +4,9 @@ import 'package:core/presentation/state/success.dart';
class StoreEmailStateToRefreshLoading extends UIState {}
class StoreEmailStateToRefreshSuccess extends UIState {
StoreEmailStateToRefreshSuccess();
@override
List<Object> get props => [];
}
class StoreEmailStateToRefreshSuccess extends UIState {}
class StoreEmailStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
StoreEmailStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
StoreEmailStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -4,19 +4,9 @@ import 'package:core/presentation/state/success.dart';
class StoreMailboxStateToRefreshLoading extends UIState {}
class StoreMailboxStateToRefreshSuccess extends UIState {
StoreMailboxStateToRefreshSuccess();
@override
List<Object> get props => [];
}
class StoreMailboxStateToRefreshSuccess extends UIState {}
class StoreMailboxStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
StoreMailboxStateToRefreshFailure(this.exception);
@override
List<Object?> get props => [exception];
StoreMailboxStateToRefreshFailure(dynamic exception) : super(exception: exception);
}
@@ -4,19 +4,9 @@ import 'package:core/presentation/state/success.dart';
class StoreSubscriptionLoading extends UIState {}
class StoreSubscriptionSuccess extends UIState {
StoreSubscriptionSuccess();
@override
List<Object> get props => [];
}
class StoreSubscriptionSuccess extends UIState {}
class StoreSubscriptionFailure extends FeatureFailure {
final dynamic exception;
StoreSubscriptionFailure(this.exception);
@override
List<Object> get props => [exception];
StoreSubscriptionFailure(dynamic exception) : super(exception: exception);
}