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
@@ -12,10 +12,6 @@ class AddRecipientsInForwardingSuccess extends UIState {
}
class AddRecipientsInForwardingFailure extends FeatureFailure {
final dynamic exception;
AddRecipientsInForwardingFailure(this.exception);
@override
List<Object?> get props => [exception];
AddRecipientsInForwardingFailure(dynamic exception) : super(exception: exception);
}
@@ -14,10 +14,6 @@ class CreateNewDefaultIdentitySuccess extends UIState {
}
class CreateNewDefaultIdentityFailure extends FeatureFailure {
final dynamic exception;
CreateNewDefaultIdentityFailure(this.exception);
@override
List<Object> get props => [exception];
CreateNewDefaultIdentityFailure(dynamic exception) : super(exception: exception);
}
@@ -14,10 +14,6 @@ class CreateNewIdentitySuccess extends UIState {
}
class CreateNewIdentityFailure extends FeatureFailure {
final dynamic exception;
CreateNewIdentityFailure(this.exception);
@override
List<Object?> get props => [exception];
CreateNewIdentityFailure(dynamic exception) : super(exception: exception);
}
@@ -13,10 +13,6 @@ class CreateNewRuleFilterSuccess extends UIState {
}
class CreateNewRuleFilterFailure extends FeatureFailure {
final dynamic exception;
CreateNewRuleFilterFailure(this.exception);
@override
List<Object?> get props => [exception];
CreateNewRuleFilterFailure(dynamic exception) : super(exception: exception);
}
@@ -11,10 +11,6 @@ class DeleteEmailRuleSuccess extends UIState {
}
class DeleteEmailRuleFailure extends FeatureFailure {
final dynamic exception;
DeleteEmailRuleFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteEmailRuleFailure(dynamic exception) : super(exception: exception);
}
@@ -11,10 +11,6 @@ class DeleteIdentitySuccess extends UIState {
}
class DeleteIdentityFailure extends FeatureFailure {
final dynamic exception;
DeleteIdentityFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteIdentityFailure(dynamic exception) : super(exception: exception);
}
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:forward/forward/tmail_forward.dart';
class StartDeleteRecipientInForwarding extends UIState {
StartDeleteRecipientInForwarding();
@override
List<Object?> get props => [];
}
class StartDeleteRecipientInForwarding extends UIState {}
class DeleteRecipientInForwardingSuccess extends UIState {
final TMailForward forward;
@@ -20,10 +14,6 @@ class DeleteRecipientInForwardingSuccess extends UIState {
}
class DeleteRecipientInForwardingFailure extends FeatureFailure {
final dynamic exception;
DeleteRecipientInForwardingFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteRecipientInForwardingFailure(dynamic exception) : super(exception: exception);
}
@@ -1,21 +1,12 @@
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/manage_account/domain/state/edit_identity_state.dart';
class EditDefaultIdentityLoading extends UIState {}
class EditDefaultIdentitySuccess extends EditIdentitySuccess {
EditDefaultIdentitySuccess();
@override
List<Object?> get props => [];
}
class EditDefaultIdentitySuccess extends EditIdentitySuccess {}
class EditDefaultIdentityFailure extends FeatureFailure {
final dynamic exception;
EditDefaultIdentityFailure(this.exception);
@override
List<Object> get props => [exception];
EditDefaultIdentityFailure(dynamic exception) : super(exception: exception);
}
@@ -13,10 +13,6 @@ class EditEmailRuleFilterSuccess extends UIState {
}
class EditEmailRuleFilterFailure extends FeatureFailure {
final dynamic exception;
EditEmailRuleFilterFailure(this.exception);
@override
List<Object?> get props => [exception];
EditEmailRuleFilterFailure(dynamic exception) : super(exception: exception);
}
@@ -1,20 +1,11 @@
import 'package:core/core.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class EditIdentityLoading extends UIState {}
class EditIdentitySuccess extends UIState {
EditIdentitySuccess();
@override
List<Object?> get props => [];
}
class EditIdentitySuccess extends UIState {}
class EditIdentityFailure extends FeatureFailure {
final dynamic exception;
EditIdentityFailure(this.exception);
@override
List<Object?> get props => [exception];
EditIdentityFailure(dynamic exception) : super(exception: exception);
}
@@ -12,10 +12,6 @@ class EditLocalCopyInForwardingSuccess extends UIState {
}
class EditLocalCopyInForwardingFailure extends FeatureFailure {
final dynamic exception;
EditLocalCopyInForwardingFailure(this.exception);
@override
List<Object?> get props => [exception];
EditLocalCopyInForwardingFailure(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:jmap_dart_client/jmap/core/state.dart';
import 'package:jmap_dart_client/jmap/identities/identity.dart';
@@ -15,10 +16,6 @@ class GetAllIdentitiesSuccess extends UIState {
}
class GetAllIdentitiesFailure extends FeatureFailure {
final dynamic exception;
GetAllIdentitiesFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllIdentitiesFailure(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:rule_filter/rule_filter/tmail_rule.dart';
class GetAllRulesSuccess extends UIState {
@@ -11,10 +12,6 @@ class GetAllRulesSuccess extends UIState {
}
class GetAllRulesFailure extends FeatureFailure {
final dynamic exception;
GetAllRulesFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllRulesFailure(dynamic exception) : super(exception: exception);
}
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
class LoadingGetAllVacation extends UIState {
LoadingGetAllVacation();
@override
List<Object?> get props => [];
}
class LoadingGetAllVacation extends UIState {}
class GetAllVacationSuccess extends UIState {
final List<VacationResponse> listVacationResponse;
@@ -20,10 +14,6 @@ class GetAllVacationSuccess extends UIState {
}
class GetAllVacationFailure extends FeatureFailure {
final dynamic exception;
GetAllVacationFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllVacationFailure(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:forward/forward/tmail_forward.dart';
class GetForwardSuccess extends UIState {
@@ -11,10 +12,6 @@ class GetForwardSuccess extends UIState {
}
class GetForwardFailure extends FeatureFailure {
final dynamic exception;
GetForwardFailure(this.exception);
@override
List<Object?> get props => [exception];
GetForwardFailure(dynamic exception) : super(exception: exception);
}
@@ -2,19 +2,9 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class LogoutOidcSuccess extends UIState {
LogoutOidcSuccess();
@override
List<Object> get props => [];
}
class LogoutOidcSuccess extends UIState {}
class LogoutOidcFailure extends FeatureFailure {
final dynamic exception;
LogoutOidcFailure(this.exception);
@override
List<Object?> get props => [exception];
LogoutOidcFailure(dynamic exception) : super(exception: exception);
}
@@ -1,14 +1,8 @@
import 'dart:ui';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/core.dart';
class SavingLanguage extends UIState {
SavingLanguage();
@override
List<Object?> get props => [];
}
class SavingLanguage extends UIState {}
class SaveLanguageSuccess extends UIState {
@@ -21,10 +15,6 @@ class SaveLanguageSuccess extends UIState {
}
class SaveLanguageFailure extends FeatureFailure {
final dynamic exception;
SaveLanguageFailure(this.exception);
@override
List<Object?> get props => [exception];
SaveLanguageFailure(dynamic exception) : super(exception: exception);
}
@@ -1,13 +1,7 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class TransformHtmlSignatureLoading extends UIState {
TransformHtmlSignatureLoading();
@override
List<Object?> get props => [];
}
class TransformHtmlSignatureLoading extends UIState {}
class TransformHtmlSignatureSuccess extends UIState {
final String signature;
@@ -21,7 +15,4 @@ class TransformHtmlSignatureSuccess extends UIState {
class TransformHtmlSignatureFailure extends FeatureFailure {
TransformHtmlSignatureFailure(exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
class LoadingUpdateVacation extends UIState {
LoadingUpdateVacation();
@override
List<Object?> get props => [];
}
class LoadingUpdateVacation extends UIState {}
class UpdateVacationSuccess extends UIState {
final List<VacationResponse> listVacationResponse;
@@ -20,10 +14,6 @@ class UpdateVacationSuccess extends UIState {
}
class UpdateVacationFailure extends FeatureFailure {
final dynamic exception;
UpdateVacationFailure(this.exception);
@override
List<Object?> get props => [exception];
UpdateVacationFailure(exception) : super(exception: exception);
}