TF-1708 Update props properties for all state object in interactor
(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
+2
-12
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedLoading extends UIState {}
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedSuccess extends UIState {
|
||||
|
||||
DeleteLastTimeDismissedSpamReportedSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class DeleteLastTimeDismissedSpamReportedSuccess extends UIState {}
|
||||
|
||||
class DeleteLastTimeDismissedSpamReportedFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteLastTimeDismissedSpamReportedFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
DeleteLastTimeDismissedSpamReportedFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteSpamReportStateLoading extends UIState {}
|
||||
|
||||
class DeleteSpamReportStateSuccess extends UIState {
|
||||
|
||||
DeleteSpamReportStateSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class DeleteSpamReportStateSuccess extends UIState {}
|
||||
|
||||
class DeleteSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
DeleteSpamReportStateFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/domain/model/recent_search.dart';
|
||||
|
||||
class GetAllRecentSearchLatestSuccess extends UIState {
|
||||
@@ -12,10 +13,6 @@ class GetAllRecentSearchLatestSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAllRecentSearchLatestFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetAllRecentSearchLatestFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetAllRecentSearchLatestFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+1
-5
@@ -15,10 +15,6 @@ class GetAppDashboardConfigurationSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAppDashboardConfigurationFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetAppDashboardConfigurationFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetAppDashboardConfigurationFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/mailbox_dashboard/data/model/composer_cache.dart';
|
||||
|
||||
class GetComposerCacheSuccess extends UIState {
|
||||
@@ -12,10 +13,6 @@ class GetComposerCacheSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetComposerCacheFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetComposerCacheFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetComposerCacheFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+1
-5
@@ -19,10 +19,6 @@ class InvalidSpamReportCondition extends FeatureFailure {
|
||||
}
|
||||
|
||||
class GetUnreadSpamMailboxFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetUnreadSpamMailboxFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetUnreadSpamMailboxFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -17,7 +17,4 @@ class GetSpamMailboxCachedSuccess extends UIState {
|
||||
class GetSpamMailboxCachedFailure extends FeatureFailure {
|
||||
|
||||
GetSpamMailboxCachedFailure(exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -14,10 +14,6 @@ class GetSpamReportStateSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetSpamReportStateFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/user/user_profile.dart';
|
||||
|
||||
class GetUserProfileSuccess extends UIState {
|
||||
final UserProfile userProfile;
|
||||
@@ -11,10 +12,6 @@ class GetUserProfileSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetUserProfileFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetUserProfileFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetUserProfileFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/email/presentation_email.dart';
|
||||
|
||||
class QuickSearchEmailSuccess extends UIState {
|
||||
@@ -12,10 +12,6 @@ class QuickSearchEmailSuccess extends UIState {
|
||||
}
|
||||
|
||||
class QuickSearchEmailFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
QuickSearchEmailFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
QuickSearchEmailFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class RemoveComposerCacheSuccess extends UIState {
|
||||
|
||||
@@ -9,10 +10,6 @@ class RemoveComposerCacheSuccess extends UIState {
|
||||
}
|
||||
|
||||
class RemoveComposerCacheFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
RemoveComposerCacheFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
RemoveComposerCacheFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
|
||||
@@ -8,16 +8,9 @@ class RemoveEmailDraftsSuccess extends UIActionState {
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
class RemoveEmailDraftsFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
RemoveEmailDraftsFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
RemoveEmailDraftsFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,18 +1,9 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class SaveComposerCacheSuccess extends UIState {
|
||||
|
||||
SaveComposerCacheSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class SaveComposerCacheSuccess extends UIState {}
|
||||
|
||||
class SaveComposerCacheFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
SaveComposerCacheFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
SaveComposerCacheFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,18 +1,9 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class SaveRecentSearchSuccess extends UIState {
|
||||
|
||||
SaveRecentSearchSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class SaveRecentSearchSuccess extends UIState {}
|
||||
|
||||
class SaveRecentSearchFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
SaveRecentSearchFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
SaveRecentSearchFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
+2
-12
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class StoreLastTimeDismissedSpamReportLoading extends UIState {}
|
||||
|
||||
class StoreLastTimeDismissedSpamReportSuccess extends UIState {
|
||||
|
||||
StoreLastTimeDismissedSpamReportSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class StoreLastTimeDismissedSpamReportSuccess extends UIState {}
|
||||
|
||||
class StoreLastTimeDismissedSpamReportFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
StoreLastTimeDismissedSpamReportFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
StoreLastTimeDismissedSpamReportFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -10,14 +10,10 @@ class StoreSpamReportStateSuccess extends UIState {
|
||||
StoreSpamReportStateSuccess(this.spamReportState);
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
List<Object> get props => [spamReportState];
|
||||
}
|
||||
|
||||
class StoreSpamReportStateFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
StoreSpamReportStateFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
StoreSpamReportStateFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user