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
+8 -1
View File
@@ -1,9 +1,16 @@
import 'package:equatable/equatable.dart';
abstract class Failure extends Equatable {}
abstract class Failure with EquatableMixin {
@override
bool? get stringify => true;
}
abstract class FeatureFailure extends Failure {
final dynamic exception;
FeatureFailure({this.exception});
@override
List<Object?> get props => [exception];
}
+5 -1
View File
@@ -1,6 +1,10 @@
import 'package:equatable/equatable.dart';
abstract class Success with EquatableMixin {}
abstract class Success with EquatableMixin {
@override
bool? get stringify => true;
}
abstract class ViewState extends Success {}
+3 -3
View File
@@ -2,10 +2,10 @@
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
class UIActionState extends UIState {
abstract class UIActionState extends UIState {
jmap.State? currentEmailState;
jmap.State? currentMailboxState;
final jmap.State? currentEmailState;
final jmap.State? currentMailboxState;
UIActionState(this.currentEmailState, this.currentMailboxState);
@@ -1,18 +1,9 @@
import 'package:core/core.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class CleanupEmailCacheSuccess extends UIState {
CleanupEmailCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupEmailCacheSuccess extends UIState {}
class CleanupEmailCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupEmailCacheFailure(this.exception);
@override
List<Object?> get props => [exception];
CleanupEmailCacheFailure(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 CleanupRecentLoginUrlCacheSuccess extends UIState {
CleanupRecentLoginUrlCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentLoginUrlCacheSuccess extends UIState {}
class CleanupRecentLoginUrlCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentLoginUrlCacheFailure(this.exception);
@override
List<Object?> get props => [exception];
CleanupRecentLoginUrlCacheFailure(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 CleanupRecentLoginUsernameCacheSuccess extends UIState {
CleanupRecentLoginUsernameCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentLoginUsernameCacheSuccess extends UIState {}
class CleanupRecentLoginUsernameCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentLoginUsernameCacheFailure(this.exception);
@override
List<Object?> get props => [exception];
CleanupRecentLoginUsernameCacheFailure(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 CleanupRecentSearchCacheSuccess extends UIState {
CleanupRecentSearchCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentSearchCacheSuccess extends UIState {}
class CleanupRecentSearchCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentSearchCacheFailure(this.exception);
@override
List<Object?> get props => [exception];
CleanupRecentSearchCacheFailure(dynamic exception) : super(exception: exception);
}
@@ -3,13 +3,7 @@ import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:model/upload/file_info.dart';
class DownloadingImageAsBase64 extends UIState {
DownloadingImageAsBase64();
@override
List<Object?> get props => [];
}
class DownloadingImageAsBase64 extends UIState {}
class DownloadImageAsBase64Success extends UIState {
@@ -24,10 +18,6 @@ class DownloadImageAsBase64Success extends UIState {
}
class DownloadImageAsBase64Failure extends FeatureFailure {
final dynamic exception;
DownloadImageAsBase64Failure(this.exception);
@override
List<Object?> get props => [exception];
DownloadImageAsBase64Failure(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/mail/email/email_address.dart';
class GetAutoCompleteSuccess extends UIState {
@@ -12,10 +13,6 @@ class GetAutoCompleteSuccess extends UIState {
}
class GetAutoCompleteFailure extends FeatureFailure {
final dynamic exception;
GetAutoCompleteFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAutoCompleteFailure(dynamic exception) : super(exception: exception);
}
@@ -1,6 +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/contact/contact.dart';
class GetDeviceContactSuggestionsSuccess extends UIState {
final List<Contact> results;
@@ -12,10 +12,6 @@ class GetDeviceContactSuggestionsSuccess extends UIState {
}
class GetDeviceContactSuggestionsFailure extends FeatureFailure {
final dynamic exception;
GetDeviceContactSuggestionsFailure(this.exception);
@override
List<Object?> get props => [exception];
GetDeviceContactSuggestionsFailure(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 SaveEmailAddressSuccess extends UIState {
SaveEmailAddressSuccess();
@override
List<Object?> get props => [];
}
class SaveEmailAddressSuccess extends UIState {}
class SaveEmailAddressFailure extends FeatureFailure {
final dynamic exception;
SaveEmailAddressFailure(this.exception);
@override
List<Object?> get props => [exception];
SaveEmailAddressFailure(dynamic exception) : super(exception: exception);
}
@@ -1,15 +1,10 @@
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' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
class SaveEmailAsDraftsLoading extends UIState {
SaveEmailAsDraftsLoading();
@override
List<Object?> get props => [];
}
class SaveEmailAsDraftsLoading extends UIState {}
class SaveEmailAsDraftsSuccess extends UIActionState {
@@ -24,14 +19,10 @@ class SaveEmailAsDraftsSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
List<Object?> get props => [emailAsDrafts, ...super.props];
}
class SaveEmailAsDraftsFailure extends FeatureFailure {
final dynamic exception;
SaveEmailAsDraftsFailure(this.exception);
@override
List<Object?> get props => [exception];
SaveEmailAsDraftsFailure(dynamic exception) : super(exception: exception);
}
@@ -11,15 +11,9 @@ class SendEmailSuccess extends UIActionState {
jmap.State? currentEmailState,
jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
}
class SendEmailFailure extends FeatureFailure {
SendEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -1,15 +1,10 @@
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' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
class UpdatingEmailDrafts extends UIState {
UpdatingEmailDrafts();
@override
List<Object?> get props => [];
}
class UpdatingEmailDrafts extends UIState {}
class UpdateEmailDraftsSuccess extends UIActionState {
@@ -24,14 +19,10 @@ class UpdateEmailDraftsSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
List<Object?> get props => [emailAsDrafts, ...super.props];
}
class UpdateEmailDraftsFailure extends FeatureFailure {
final dynamic exception;
UpdateEmailDraftsFailure(this.exception);
@override
List<Object?> get props => [exception];
UpdateEmailDraftsFailure(dynamic exception) : super(exception: exception);
}
@@ -15,11 +15,10 @@ class UploadAttachmentSuccess extends UIState {
}
class UploadAttachmentFailure extends FeatureFailure {
final dynamic exception;
final bool isInline;
UploadAttachmentFailure(this.exception, {this.isInline = false});
UploadAttachmentFailure(dynamic exception, {this.isInline = false}) : super(exception: exception);
@override
List<Object> get props => [exception, isInline];
List<Object?> get props => [isInline, ...super.props];
}
@@ -1,14 +1,9 @@
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/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
class StartDeleteEmailPermanently extends UIState {
StartDeleteEmailPermanently();
@override
List<Object?> get props => [];
}
class StartDeleteEmailPermanently extends UIState {}
class DeleteEmailPermanentlySuccess extends UIActionState {
@@ -16,17 +11,9 @@ class DeleteEmailPermanentlySuccess extends UIActionState {
jmap.State? currentEmailState,
jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
}
class DeleteEmailPermanentlyFailure extends FeatureFailure {
final dynamic exception;
DeleteEmailPermanentlyFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteEmailPermanentlyFailure(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' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
@@ -18,7 +19,7 @@ class DeleteMultipleEmailsPermanentlyAllSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [emailIds];
List<Object?> get props => [emailIds, ...super.props];
}
class DeleteMultipleEmailsPermanentlyHasSomeEmailFailure extends UIActionState {
@@ -34,23 +35,12 @@ class DeleteMultipleEmailsPermanentlyHasSomeEmailFailure extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object> get props => [emailIds];
List<Object?> get props => [emailIds, ...super.props];
}
class DeleteMultipleEmailsPermanentlyAllFailure extends FeatureFailure {
DeleteMultipleEmailsPermanentlyAllFailure();
@override
List<Object?> get props => [];
}
class DeleteMultipleEmailsPermanentlyAllFailure extends FeatureFailure {}
class DeleteMultipleEmailsPermanentlyFailure extends FeatureFailure {
final dynamic exception;
DeleteMultipleEmailsPermanentlyFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteMultipleEmailsPermanentlyFailure(dynamic exception) : super(exception: exception);
}
@@ -7,7 +7,4 @@ class DeleteSendingEmailSuccess extends UIState {}
class DeleteSendingEmailFailure extends FeatureFailure {
DeleteSendingEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -1,7 +1,8 @@
import 'dart:typed_data';
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/download/download_task_id.dart';
import 'package:model/email/attachment.dart';
class StartDownloadAttachmentForWeb extends UIState {
@@ -55,10 +56,9 @@ class DownloadAttachmentForWebSuccess extends UIState {
class DownloadAttachmentForWebFailure extends FeatureFailure {
final DownloadTaskId taskId;
final dynamic exception;
DownloadAttachmentForWebFailure(this.taskId, this.exception);
DownloadAttachmentForWebFailure(this.taskId, dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [taskId, exception];
List<Object?> get props => [taskId, ...super.props];
}
@@ -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/download/download_task_id.dart';
class DownloadAttachmentsSuccess extends UIState {
final List<DownloadTaskId> taskIds;
@@ -11,10 +12,6 @@ class DownloadAttachmentsSuccess extends UIState {
}
class DownloadAttachmentsFailure extends FeatureFailure {
final dynamic exception;
DownloadAttachmentsFailure(this.exception);
@override
List<Object?> get props => [exception];
DownloadAttachmentsFailure(dynamic exception) : super(exception: exception);
}
@@ -1,4 +1,6 @@
import 'package:core/core.dart';
import 'package:core/data/network/download/downloaded_response.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class ExportAttachmentSuccess extends UIState {
final DownloadedResponse downloadedResponse;
@@ -10,10 +12,6 @@ class ExportAttachmentSuccess extends UIState {
}
class ExportAttachmentFailure extends FeatureFailure {
final dynamic exception;
ExportAttachmentFailure(this.exception);
@override
List<Object?> get props => [exception];
ExportAttachmentFailure(dynamic exception) : super(exception: exception);
}
@@ -22,7 +22,4 @@ class GetDetailedEmailByIdSuccess extends UIState {
class GetDetailedEmailByIdFailure extends FeatureFailure {
GetDetailedEmailByIdFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -49,7 +49,4 @@ class GetEmailContentFromCacheSuccess extends UIState {
class GetEmailContentFailure extends FeatureFailure {
GetEmailContentFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -13,19 +13,9 @@ class GetStoredEmailStateSuccess extends UIState {
List<Object> get props => [state];
}
class NotFoundEmailState extends FeatureFailure {
NotFoundEmailState();
@override
List<Object> get props => [];
}
class NotFoundEmailState extends FeatureFailure {}
class GetStoredEmailStateFailure extends FeatureFailure {
final dynamic exception;
GetStoredEmailStateFailure(this.exception);
@override
List<Object?> get props => [exception];
GetStoredEmailStateFailure(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:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:model/email/read_actions.dart';
@@ -19,15 +19,14 @@ class MarkAsEmailReadSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [updatedEmail, readActions];
List<Object?> get props => [updatedEmail, readActions, ...super.props];
}
class MarkAsEmailReadFailure extends FeatureFailure {
final dynamic exception;
final ReadActions readActions;
MarkAsEmailReadFailure(this.exception, this.readActions);
MarkAsEmailReadFailure(this.readActions, {dynamic exception}) : super(exception: exception);
@override
List<Object?> get props => [exception, readActions];
List<Object?> get props => [readActions, ...super.props];
}
@@ -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:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:model/model.dart';
@@ -18,15 +18,14 @@ class MarkAsStarEmailSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [updatedEmail, markStarAction];
List<Object?> get props => [updatedEmail, markStarAction, ...super.props];
}
class MarkAsStarEmailFailure extends FeatureFailure {
final dynamic exception;
final MarkStarAction markStarAction;
MarkAsStarEmailFailure(this.exception, this.markStarAction);
MarkAsStarEmailFailure(this.markStarAction, {dynamic exception}) : super(exception: exception);
@override
List<Object?> get props => [exception, markStarAction];
List<Object?> get props => [markStarAction, ...super.props];
}
@@ -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' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
@@ -36,16 +37,16 @@ class MoveToMailboxSuccess extends UIActionState {
destinationMailboxId,
moveAction,
emailActionType,
destinationPath
destinationPath,
...super.props
];
}
class MoveToMailboxFailure extends FeatureFailure {
final EmailActionType emailActionType;
final dynamic exception;
MoveToMailboxFailure(this.emailActionType, this.exception);
MoveToMailboxFailure(this.emailActionType, {dynamic exception}) : super(exception: exception);
@override
List<Object?> get props => [emailActionType, exception];
List<Object?> get props => [emailActionType, ...super.props];
}
@@ -16,10 +16,5 @@ class SendReceiptToSenderSuccess extends UIState {
class SendReceiptToSenderFailure extends FeatureFailure {
final dynamic exception;
SendReceiptToSenderFailure(this.exception);
@override
List<Object?> get props => [exception];
SendReceiptToSenderFailure(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 StoreNewEmailLoading extends UIState {}
@@ -7,7 +8,4 @@ class StoreNewEmailSuccess extends UIState {}
class StoreNewEmailFailure extends FeatureFailure {
StoreNewEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -8,7 +8,4 @@ class StoreOpenedEmailSuccess extends UIState {}
class StoreOpenedEmailFailure extends FeatureFailure {
StoreOpenedEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -17,7 +17,4 @@ class StoreSendingEmailSuccess extends UIState {
class StoreSendingEmailFailure extends FeatureFailure {
StoreSendingEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -33,10 +33,10 @@ class MarkAsEmailReadInteractor {
currentEmailState: currentEmailState,
currentMailboxState: currentMailboxState));
} else {
yield Left(MarkAsEmailReadFailure(null, readAction));
yield Left(MarkAsEmailReadFailure(readAction));
}
} catch (e) {
yield Left(MarkAsEmailReadFailure(e, readAction));
yield Left(MarkAsEmailReadFailure(readAction, exception: e));
}
}
}
@@ -23,10 +23,10 @@ class MarkAsStarEmailInteractor {
markStarAction,
currentEmailState: currentEmailState));
} else {
yield Left(MarkAsStarEmailFailure(null, markStarAction));
yield Left(MarkAsStarEmailFailure(markStarAction));
}
} catch (e) {
yield Left(MarkAsStarEmailFailure(e, markStarAction));
yield Left(MarkAsStarEmailFailure(markStarAction, exception: e));
}
}
}
@@ -37,10 +37,10 @@ class MoveToMailboxInteractor {
currentMailboxState: currentMailboxState,
currentEmailState: currentEmailState));
} else {
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, null));
yield Left(MoveToMailboxFailure(moveRequest.emailActionType));
}
} catch (e) {
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, e));
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, exception: e));
}
}
}
@@ -1,28 +1,11 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class AuthenticateOidcOnBrowserLoading extends LoadingState {
class AuthenticateOidcOnBrowserLoading extends LoadingState {}
AuthenticateOidcOnBrowserLoading();
@override
List<Object> get props => [];
}
class AuthenticateOidcOnBrowserSuccess extends UIState {
AuthenticateOidcOnBrowserSuccess();
@override
List<Object> get props => [];
}
class AuthenticateOidcOnBrowserSuccess extends UIState {}
class AuthenticateOidcOnBrowserFailure extends FeatureFailure {
final dynamic exception;
AuthenticateOidcOnBrowserFailure(this.exception);
@override
List<Object?> get props => [exception];
AuthenticateOidcOnBrowserFailure(dynamic exception) : super(exception: exception);
}
@@ -1,12 +1,8 @@
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 AuthenticationUserLoading extends LoadingState {
AuthenticationUserLoading();
@override
List<Object> get props => [];
}
class AuthenticationUserLoading extends LoadingState {}
class AuthenticationUserSuccess extends UIState {
final UserProfile userProfile;
@@ -20,7 +16,4 @@ class AuthenticationUserSuccess extends UIState {
class AuthenticationUserFailure extends FeatureFailure {
AuthenticationUserFailure(dynamic 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:model/oidc/response/oidc_response.dart';
class CheckOIDCIsAvailableLoading extends LoadingState {
CheckOIDCIsAvailableLoading();
@override
List<Object> get props => [];
}
class CheckOIDCIsAvailableLoading extends LoadingState {}
class CheckOIDCIsAvailableSuccess extends UIState {
final OIDCResponse oidcResponse;
@@ -22,7 +16,4 @@ class CheckOIDCIsAvailableSuccess extends UIState {
class CheckOIDCIsAvailableFailure extends FeatureFailure {
CheckOIDCIsAvailableFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -1,17 +1,9 @@
import 'package:core/core.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class DeleteAuthorityOidcSuccess extends UIState {
DeleteAuthorityOidcSuccess();
@override
List<Object> get props => [];
}
class DeleteAuthorityOidcSuccess extends UIState {}
class DeleteAuthorityOidcFailure extends FeatureFailure {
final dynamic exception;
DeleteAuthorityOidcFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteAuthorityOidcFailure(dynamic exception) : super(exception: exception);
}
@@ -1,17 +1,9 @@
import 'package:core/core.dart';
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class DeleteCredentialSuccess extends UIState {
DeleteCredentialSuccess();
@override
List<Object> get props => [];
}
class DeleteCredentialSuccess extends UIState {}
class DeleteCredentialFailure extends FeatureFailure {
final dynamic exception;
DeleteCredentialFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteCredentialFailure(dynamic exception) : super(exception: exception);
}
@@ -13,10 +13,6 @@ class GetAllRecentLoginUrlLatestSuccess extends UIState {
}
class GetAllRecentLoginUrlLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentLoginUrlLatestFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllRecentLoginUrlLatestFailure(dynamic exception) : super(exception: exception);
}
@@ -13,10 +13,6 @@ class GetAllRecentLoginUsernameLatestSuccess extends UIState {
}
class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentLoginUsernameLatestFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllRecentLoginUsernameLatestFailure(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:model/account/personal_account.dart';
class NoAuthenticatedAccountFailure extends FeatureFailure {
NoAuthenticatedAccountFailure();
@override
List<Object?> get props => [];
}
class NoAuthenticatedAccountFailure extends FeatureFailure {}
class GetAuthenticatedAccountSuccess extends UIState {
final PersonalAccount account;
@@ -20,8 +14,6 @@ class GetAuthenticatedAccountSuccess extends UIState {
}
class GetAuthenticatedAccountFailure extends FeatureFailure {
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
}
@@ -1,27 +1,11 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class GetAuthenticationInfoLoading extends LoadingState {
class GetAuthenticationInfoLoading extends LoadingState {}
GetAuthenticationInfoLoading();
@override
List<Object> get props => [];
}
class GetAuthenticationInfoSuccess extends UIState {
GetAuthenticationInfoSuccess();
@override
List<Object> get props => [];
}
class GetAuthenticationInfoSuccess extends UIState {}
class GetAuthenticationInfoFailure extends FeatureFailure {
GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -17,7 +17,4 @@ class GetCredentialViewState extends UIState {
class GetCredentialFailure extends FeatureFailure {
GetCredentialFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}
@@ -1,13 +1,8 @@
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/oidc/oidc_configuration.dart';
class GetOIDCConfigurationLoading extends LoadingState {
GetOIDCConfigurationLoading();
@override
List<Object> get props => [];
}
class GetOIDCConfigurationLoading extends LoadingState {}
class GetOIDCConfigurationSuccess extends UIState {
@@ -22,7 +17,4 @@ class GetOIDCConfigurationSuccess extends UIState {
class GetOIDCConfigurationFailure extends FeatureFailure {
GetOIDCConfigurationFailure(dynamic 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:model/oidc/response/oidc_response.dart';
class GetOIDCIsAvailableLoading extends LoadingState {
GetOIDCIsAvailableLoading();
@override
List<Object> get props => [];
}
class GetOIDCIsAvailableLoading extends LoadingState {}
class GetOIDCIsAvailableSuccess extends UIState {
final OIDCResponse oidcResponse;
@@ -22,7 +16,4 @@ class GetOIDCIsAvailableSuccess extends UIState {
class GetOIDCIsAvailableFailure extends FeatureFailure {
GetOIDCIsAvailableFailure(dynamic 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:model/oidc/oidc_configuration.dart';
class GetStoredOidcConfigurationLoading extends LoadingState {
GetStoredOidcConfigurationLoading();
@override
List<Object?> get props => [];
}
class GetStoredOidcConfigurationLoading extends LoadingState {}
class GetStoredOidcConfigurationSuccess extends UIState {
final OIDCConfiguration oidcConfiguration;
@@ -20,10 +14,6 @@ class GetStoredOidcConfigurationSuccess extends UIState {
}
class GetStoredOidcConfigurationFailure extends FeatureFailure {
final dynamic exception;
GetStoredOidcConfigurationFailure(this.exception);
@override
List<Object?> get props => [exception];
GetStoredOidcConfigurationFailure(dynamic exception) : super(exception: exception);
}
@@ -15,13 +15,6 @@ class GetStoredTokenOidcSuccess extends UIState {
}
class GetStoredTokenOidcFailure extends FeatureFailure {
final dynamic exception;
GetStoredTokenOidcFailure(this.exception);
@override
bool? get stringify => true;
@override
List<Object?> get props => [exception];
GetStoredTokenOidcFailure(dynamic exception) : super(exception: exception);
}
@@ -1,13 +1,9 @@
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/oidc/oidc_configuration.dart';
import 'package:model/oidc/token_oidc.dart';
class GetTokenOIDCLoading extends LoadingState {
GetTokenOIDCLoading();
@override
List<Object> get props => [];
}
class GetTokenOIDCLoading extends LoadingState {}
class GetTokenOIDCSuccess extends UIState {
@@ -23,7 +19,4 @@ class GetTokenOIDCSuccess extends UIState {
class GetTokenOIDCFailure extends FeatureFailure {
GetTokenOIDCFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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/oidc/token_oidc.dart';
class RefreshTokenOIDCSuccess extends UIState {
@@ -12,10 +13,6 @@ class RefreshTokenOIDCSuccess extends UIState {
}
class RefreshTokenOIDCFailure extends FeatureFailure {
final dynamic exception;
RefreshTokenOIDCFailure(this.exception);
@override
List<Object?> get props => [exception];
RefreshTokenOIDCFailure(dynamic exception) : super(exception: exception);
}
@@ -1,20 +1,9 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class SaveRecentLoginUrlSuccess extends UIState {
SaveRecentLoginUrlSuccess();
@override
List<Object> get props => [];
}
class SaveRecentLoginUrlSuccess extends UIState {}
class SaveRecentLoginUrlFailed extends FeatureFailure {
final dynamic exception;
SaveRecentLoginUrlFailed(this.exception);
@override
List<Object?> get props => [exception];
SaveRecentLoginUrlFailed(dynamic exception) : super(exception: exception);
}
@@ -1,20 +1,9 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
class SaveRecentLoginUsernameSuccess extends UIState {
SaveRecentLoginUsernameSuccess();
@override
List<Object> get props => [];
}
class SaveRecentLoginUsernameSuccess extends UIState {}
class SaveRecentLoginUsernameFailed extends FeatureFailure {
final dynamic exception;
SaveRecentLoginUsernameFailed(this.exception);
@override
List<Object?> get props => [exception];
SaveRecentLoginUsernameFailed(dynamic exception) : super(exception: exception);
}
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
class UpdateAuthenticationAccountLoading extends LoadingState {}
class UpdateAuthenticationAccountSuccess extends UIState {
UpdateAuthenticationAccountSuccess();
@override
List<Object> get props => [];
}
class UpdateAuthenticationAccountSuccess extends UIState {}
class UpdateAuthenticationAccountFailure extends FeatureFailure {
final dynamic exception;
UpdateAuthenticationAccountFailure(this.exception);
@override
List<Object?> get props => [exception];
UpdateAuthenticationAccountFailure(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/mail/mailbox/mailbox.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -15,14 +16,10 @@ class CreateNewMailboxSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [newMailbox];
List<Object?> get props => [newMailbox, ...super.props];
}
class CreateNewMailboxFailure extends FeatureFailure {
final dynamic exception;
CreateNewMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
CreateNewMailboxFailure(dynamic exception) : super(exception: exception);
}
@@ -16,7 +16,7 @@ class DeleteMultipleMailboxAllSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [listMailboxIdDeleted];
List<Object?> get props => [listMailboxIdDeleted, ...super.props];
}
class DeleteMultipleMailboxHasSomeSuccess extends UIActionState {
@@ -29,22 +29,12 @@ class DeleteMultipleMailboxHasSomeSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [listMailboxIdDeleted];
List<Object?> get props => [listMailboxIdDeleted, ...super.props];
}
class DeleteMultipleMailboxAllFailure extends FeatureFailure {
DeleteMultipleMailboxAllFailure();
@override
List<Object> get props => [];
}
class DeleteMultipleMailboxAllFailure extends FeatureFailure {}
class DeleteMultipleMailboxFailure extends FeatureFailure {
final dynamic exception;
DeleteMultipleMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
DeleteMultipleMailboxFailure(dynamic exception) : super(exception: exception);
}
@@ -16,10 +16,6 @@ class GetAllMailboxSuccess extends UIState {
}
class GetAllMailboxFailure extends FeatureFailure {
final dynamic exception;
GetAllMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
GetAllMailboxFailure(dynamic exception) : super(exception: exception);
}
@@ -1,15 +1,10 @@
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' as jmap;
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
class MarkAsMailboxReadLoading extends UIState {
MarkAsMailboxReadLoading();
@override
List<Object?> get props => [];
}
class MarkAsMailboxReadLoading extends UIState {}
class UpdatingMarkAsMailboxReadState extends UIState {
@@ -38,7 +33,10 @@ class MarkAsMailboxReadAllSuccess extends UIActionState {
) : super(currentMailboxState, currentEmailState);
@override
List<Object?> get props => [mailboxDisplayName];
List<Object?> get props => [
mailboxDisplayName,
...super.props
];
}
class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
@@ -56,22 +54,16 @@ class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
) : super(currentMailboxState, currentEmailState);
@override
List<Object?> get props => [mailboxDisplayName, countEmailsRead];
List<Object?> get props => [
mailboxDisplayName,
countEmailsRead,
...super.props
];
}
class MarkAsMailboxReadAllFailure extends FeatureFailure {
MarkAsMailboxReadAllFailure();
@override
List<Object?> get props => [];
}
class MarkAsMailboxReadAllFailure extends FeatureFailure {}
class MarkAsMailboxReadFailure extends FeatureFailure {
final dynamic exception;
MarkAsMailboxReadFailure(this.exception);
@override
List<Object?> get props => [exception];
MarkAsMailboxReadFailure(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/mail/mailbox/mailbox.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:tmail_ui_user/features/email/domain/model/move_action.dart';
@@ -40,7 +41,4 @@ class MoveMailboxSuccess extends UIActionState {
class MoveMailboxFailure extends FeatureFailure {
MoveMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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:model/mailbox/presentation_mailbox.dart';
@@ -16,10 +17,6 @@ class RefreshChangesAllMailboxSuccess extends UIState {
}
class RefreshChangesAllMailboxFailure extends FeatureFailure {
final dynamic exception;
RefreshChangesAllMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
RefreshChangesAllMailboxFailure(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/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -10,16 +11,9 @@ class RenameMailboxSuccess extends UIActionState {
jmap.State? currentEmailState,
jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
}
class RenameMailboxFailure extends FeatureFailure {
final dynamic exception;
RenameMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
RenameMailboxFailure(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:model/mailbox/presentation_mailbox.dart';
class LoadingSearchMailbox extends UIState {}
@@ -14,10 +15,6 @@ class SearchMailboxSuccess extends UIState {
}
class SearchMailboxFailure extends FeatureFailure {
final dynamic exception;
SearchMailboxFailure(this.exception);
@override
List<Object?> get props => [exception];
SearchMailboxFailure(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/mail/mailbox/mailbox.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -23,15 +24,11 @@ class SubscribeMailboxSuccess extends UIActionState {
List<Object?> get props => [
mailboxId,
subscribeAction,
super.props
...super.props
];
}
class SubscribeMailboxFailure extends FeatureFailure {
final dynamic exception;
SubscribeMailboxFailure(this.exception);
@override
List<Object> get props => [exception];
SubscribeMailboxFailure(dynamic exception) : super(exception: exception);
}
@@ -28,7 +28,7 @@ class SubscribeMultipleMailboxAllSuccess extends UIActionState {
parentMailboxId,
mailboxIdsSubscribe,
subscribeAction,
super.props
...super.props
];
}
@@ -53,23 +53,13 @@ class SubscribeMultipleMailboxHasSomeSuccess extends UIActionState {
parentMailboxId,
mailboxIdsSubscribe,
subscribeAction,
super.props
...super.props
];
}
class SubscribeMultipleMailboxAllFailure extends FeatureFailure {
SubscribeMultipleMailboxAllFailure();
@override
List<Object> get props => [];
}
class SubscribeMultipleMailboxAllFailure extends FeatureFailure {}
class SubscribeMultipleMailboxFailure extends FeatureFailure {
final dynamic exception;
SubscribeMultipleMailboxFailure(this.exception);
@override
List<Object> get props => [exception];
SubscribeMultipleMailboxFailure(dynamic exception) : super(exception: exception);
}
@@ -1,17 +1,9 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:core/core.dart';
class VerifyNameViewState extends UIState {
VerifyNameViewState();
@override
List<Object> get props => [];
}
class VerifyNameViewState extends UIState {}
class VerifyNameFailure extends FeatureFailure {
final dynamic exception;
VerifyNameFailure(this.exception);
@override
List<Object?> get props => [exception];
VerifyNameFailure(dynamic exception) : super(exception: exception);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}
@@ -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);
}

Some files were not shown because too many files have changed in this diff Show More