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'; 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 { abstract class FeatureFailure extends Failure {
final dynamic exception; final dynamic exception;
FeatureFailure({this.exception}); FeatureFailure({this.exception});
@override
List<Object?> get props => [exception];
} }
+5 -1
View File
@@ -1,6 +1,10 @@
import 'package:equatable/equatable.dart'; 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 {} abstract class ViewState extends Success {}
+3 -3
View File
@@ -2,10 +2,10 @@
import 'package:core/presentation/state/success.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/core/state.dart' as jmap;
class UIActionState extends UIState { abstract class UIActionState extends UIState {
jmap.State? currentEmailState; final jmap.State? currentEmailState;
jmap.State? currentMailboxState; final jmap.State? currentMailboxState;
UIActionState(this.currentEmailState, this.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 { class CleanupEmailCacheSuccess extends UIState {}
CleanupEmailCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupEmailCacheFailure extends FeatureFailure { class CleanupEmailCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupEmailCacheFailure(this.exception); CleanupEmailCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class CleanupRecentLoginUrlCacheSuccess extends UIState {}
CleanupRecentLoginUrlCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentLoginUrlCacheFailure extends FeatureFailure { class CleanupRecentLoginUrlCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentLoginUrlCacheFailure(this.exception); CleanupRecentLoginUrlCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class CleanupRecentLoginUsernameCacheSuccess extends UIState {}
CleanupRecentLoginUsernameCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentLoginUsernameCacheFailure extends FeatureFailure { class CleanupRecentLoginUsernameCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentLoginUsernameCacheFailure(this.exception); CleanupRecentLoginUsernameCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class CleanupRecentSearchCacheSuccess extends UIState {}
CleanupRecentSearchCacheSuccess();
@override
List<Object> get props => [];
}
class CleanupRecentSearchCacheFailure extends FeatureFailure { class CleanupRecentSearchCacheFailure extends FeatureFailure {
final dynamic exception;
CleanupRecentSearchCacheFailure(this.exception); CleanupRecentSearchCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -3,13 +3,7 @@ import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/upload/file_info.dart'; import 'package:model/upload/file_info.dart';
class DownloadingImageAsBase64 extends UIState { class DownloadingImageAsBase64 extends UIState {}
DownloadingImageAsBase64();
@override
List<Object?> get props => [];
}
class DownloadImageAsBase64Success extends UIState { class DownloadImageAsBase64Success extends UIState {
@@ -24,10 +18,6 @@ class DownloadImageAsBase64Success extends UIState {
} }
class DownloadImageAsBase64Failure extends FeatureFailure { class DownloadImageAsBase64Failure extends FeatureFailure {
final dynamic exception;
DownloadImageAsBase64Failure(this.exception); DownloadImageAsBase64Failure(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/mail/email/email_address.dart'; import 'package:jmap_dart_client/jmap/mail/email/email_address.dart';
class GetAutoCompleteSuccess extends UIState { class GetAutoCompleteSuccess extends UIState {
@@ -12,10 +13,6 @@ class GetAutoCompleteSuccess extends UIState {
} }
class GetAutoCompleteFailure extends FeatureFailure { class GetAutoCompleteFailure extends FeatureFailure {
final dynamic exception;
GetAutoCompleteFailure(this.exception); GetAutoCompleteFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,6 +1,6 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/core.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/model.dart'; import 'package:model/contact/contact.dart';
class GetDeviceContactSuggestionsSuccess extends UIState { class GetDeviceContactSuggestionsSuccess extends UIState {
final List<Contact> results; final List<Contact> results;
@@ -12,10 +12,6 @@ class GetDeviceContactSuggestionsSuccess extends UIState {
} }
class GetDeviceContactSuggestionsFailure extends FeatureFailure { class GetDeviceContactSuggestionsFailure extends FeatureFailure {
final dynamic exception;
GetDeviceContactSuggestionsFailure(this.exception); GetDeviceContactSuggestionsFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class SaveEmailAddressSuccess extends UIState {}
SaveEmailAddressSuccess();
@override
List<Object?> get props => [];
}
class SaveEmailAddressFailure extends FeatureFailure { class SaveEmailAddressFailure extends FeatureFailure {
final dynamic exception;
SaveEmailAddressFailure(this.exception); SaveEmailAddressFailure(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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart'; import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart'; import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
class SaveEmailAsDraftsLoading extends UIState { class SaveEmailAsDraftsLoading extends UIState {}
SaveEmailAsDraftsLoading();
@override
List<Object?> get props => [];
}
class SaveEmailAsDraftsSuccess extends UIActionState { class SaveEmailAsDraftsSuccess extends UIActionState {
@@ -24,14 +19,10 @@ class SaveEmailAsDraftsSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => []; List<Object?> get props => [emailAsDrafts, ...super.props];
} }
class SaveEmailAsDraftsFailure extends FeatureFailure { class SaveEmailAsDraftsFailure extends FeatureFailure {
final dynamic exception;
SaveEmailAsDraftsFailure(this.exception); SaveEmailAsDraftsFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -11,15 +11,9 @@ class SendEmailSuccess extends UIActionState {
jmap.State? currentEmailState, jmap.State? currentEmailState,
jmap.State? currentMailboxState, jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
} }
class SendEmailFailure extends FeatureFailure { class SendEmailFailure extends FeatureFailure {
SendEmailFailure(dynamic exception) : super(exception: exception); 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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart'; import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart'; import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
class UpdatingEmailDrafts extends UIState { class UpdatingEmailDrafts extends UIState {}
UpdatingEmailDrafts();
@override
List<Object?> get props => [];
}
class UpdateEmailDraftsSuccess extends UIActionState { class UpdateEmailDraftsSuccess extends UIActionState {
@@ -24,14 +19,10 @@ class UpdateEmailDraftsSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => []; List<Object?> get props => [emailAsDrafts, ...super.props];
} }
class UpdateEmailDraftsFailure extends FeatureFailure { class UpdateEmailDraftsFailure extends FeatureFailure {
final dynamic exception;
UpdateEmailDraftsFailure(this.exception); UpdateEmailDraftsFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -15,11 +15,10 @@ class UploadAttachmentSuccess extends UIState {
} }
class UploadAttachmentFailure extends FeatureFailure { class UploadAttachmentFailure extends FeatureFailure {
final dynamic exception;
final bool isInline; final bool isInline;
UploadAttachmentFailure(this.exception, {this.isInline = false}); UploadAttachmentFailure(dynamic exception, {this.isInline = false}) : super(exception: exception);
@override @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:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap; import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
class StartDeleteEmailPermanently extends UIState { class StartDeleteEmailPermanently extends UIState {}
StartDeleteEmailPermanently();
@override
List<Object?> get props => [];
}
class DeleteEmailPermanentlySuccess extends UIActionState { class DeleteEmailPermanentlySuccess extends UIActionState {
@@ -16,17 +11,9 @@ class DeleteEmailPermanentlySuccess extends UIActionState {
jmap.State? currentEmailState, jmap.State? currentEmailState,
jmap.State? currentMailboxState, jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
} }
class DeleteEmailPermanentlyFailure extends FeatureFailure { class DeleteEmailPermanentlyFailure extends FeatureFailure {
final dynamic exception; DeleteEmailPermanentlyFailure(dynamic exception) : super(exception: exception);
DeleteEmailPermanentlyFailure(this.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' as jmap; 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/email/email.dart';
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart'; import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
@@ -18,7 +19,7 @@ class DeleteMultipleEmailsPermanentlyAllSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [emailIds]; List<Object?> get props => [emailIds, ...super.props];
} }
class DeleteMultipleEmailsPermanentlyHasSomeEmailFailure extends UIActionState { class DeleteMultipleEmailsPermanentlyHasSomeEmailFailure extends UIActionState {
@@ -34,23 +35,12 @@ class DeleteMultipleEmailsPermanentlyHasSomeEmailFailure extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object> get props => [emailIds]; List<Object?> get props => [emailIds, ...super.props];
} }
class DeleteMultipleEmailsPermanentlyAllFailure extends FeatureFailure { class DeleteMultipleEmailsPermanentlyAllFailure extends FeatureFailure {}
DeleteMultipleEmailsPermanentlyAllFailure();
@override
List<Object?> get props => [];
}
class DeleteMultipleEmailsPermanentlyFailure extends FeatureFailure { class DeleteMultipleEmailsPermanentlyFailure extends FeatureFailure {
final dynamic exception; DeleteMultipleEmailsPermanentlyFailure(dynamic exception) : super(exception: exception);
DeleteMultipleEmailsPermanentlyFailure(this.exception);
@override
List<Object?> get props => [exception];
} }
@@ -7,7 +7,4 @@ class DeleteSendingEmailSuccess extends UIState {}
class DeleteSendingEmailFailure extends FeatureFailure { class DeleteSendingEmailFailure extends FeatureFailure {
DeleteSendingEmailFailure(dynamic exception) : super(exception: exception); DeleteSendingEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,7 +1,8 @@
import 'dart:typed_data'; import 'dart:typed_data';
import 'package:core/presentation/state/failure.dart';
import 'package:core/core.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/model.dart'; import 'package:model/download/download_task_id.dart';
import 'package:model/email/attachment.dart';
class StartDownloadAttachmentForWeb extends UIState { class StartDownloadAttachmentForWeb extends UIState {
@@ -55,10 +56,9 @@ class DownloadAttachmentForWebSuccess extends UIState {
class DownloadAttachmentForWebFailure extends FeatureFailure { class DownloadAttachmentForWebFailure extends FeatureFailure {
final DownloadTaskId taskId; final DownloadTaskId taskId;
final dynamic exception;
DownloadAttachmentForWebFailure(this.taskId, this.exception); DownloadAttachmentForWebFailure(this.taskId, dynamic exception) : super(exception: exception);
@override @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:core/presentation/state/failure.dart';
import 'package:model/model.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/download/download_task_id.dart';
class DownloadAttachmentsSuccess extends UIState { class DownloadAttachmentsSuccess extends UIState {
final List<DownloadTaskId> taskIds; final List<DownloadTaskId> taskIds;
@@ -11,10 +12,6 @@ class DownloadAttachmentsSuccess extends UIState {
} }
class DownloadAttachmentsFailure extends FeatureFailure { class DownloadAttachmentsFailure extends FeatureFailure {
final dynamic exception;
DownloadAttachmentsFailure(this.exception); DownloadAttachmentsFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class ExportAttachmentSuccess extends UIState {
final DownloadedResponse downloadedResponse; final DownloadedResponse downloadedResponse;
@@ -10,10 +12,6 @@ class ExportAttachmentSuccess extends UIState {
} }
class ExportAttachmentFailure extends FeatureFailure { class ExportAttachmentFailure extends FeatureFailure {
final dynamic exception;
ExportAttachmentFailure(this.exception); ExportAttachmentFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -22,7 +22,4 @@ class GetDetailedEmailByIdSuccess extends UIState {
class GetDetailedEmailByIdFailure extends FeatureFailure { class GetDetailedEmailByIdFailure extends FeatureFailure {
GetDetailedEmailByIdFailure(dynamic exception) : super(exception: exception); GetDetailedEmailByIdFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -49,7 +49,4 @@ class GetEmailContentFromCacheSuccess extends UIState {
class GetEmailContentFailure extends FeatureFailure { class GetEmailContentFailure extends FeatureFailure {
GetEmailContentFailure(dynamic exception) : super(exception: exception); 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]; List<Object> get props => [state];
} }
class NotFoundEmailState extends FeatureFailure { class NotFoundEmailState extends FeatureFailure {}
NotFoundEmailState();
@override
List<Object> get props => [];
}
class GetStoredEmailStateFailure extends FeatureFailure { class GetStoredEmailStateFailure extends FeatureFailure {
final dynamic exception;
GetStoredEmailStateFailure(this.exception); GetStoredEmailStateFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart'; import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:model/email/read_actions.dart'; import 'package:model/email/read_actions.dart';
@@ -19,15 +19,14 @@ class MarkAsEmailReadSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [updatedEmail, readActions]; List<Object?> get props => [updatedEmail, readActions, ...super.props];
} }
class MarkAsEmailReadFailure extends FeatureFailure { class MarkAsEmailReadFailure extends FeatureFailure {
final dynamic exception;
final ReadActions readActions; final ReadActions readActions;
MarkAsEmailReadFailure(this.exception, this.readActions); MarkAsEmailReadFailure(this.readActions, {dynamic exception}) : super(exception: exception);
@override @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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart'; import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:model/model.dart'; import 'package:model/model.dart';
@@ -18,15 +18,14 @@ class MarkAsStarEmailSuccess extends UIActionState {
) : super(currentEmailState, currentMailboxState); ) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [updatedEmail, markStarAction]; List<Object?> get props => [updatedEmail, markStarAction, ...super.props];
} }
class MarkAsStarEmailFailure extends FeatureFailure { class MarkAsStarEmailFailure extends FeatureFailure {
final dynamic exception;
final MarkStarAction markStarAction; final MarkStarAction markStarAction;
MarkAsStarEmailFailure(this.exception, this.markStarAction); MarkAsStarEmailFailure(this.markStarAction, {dynamic exception}) : super(exception: exception);
@override @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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/email/email.dart'; import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart'; import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
@@ -36,16 +37,16 @@ class MoveToMailboxSuccess extends UIActionState {
destinationMailboxId, destinationMailboxId,
moveAction, moveAction,
emailActionType, emailActionType,
destinationPath destinationPath,
...super.props
]; ];
} }
class MoveToMailboxFailure extends FeatureFailure { class MoveToMailboxFailure extends FeatureFailure {
final EmailActionType emailActionType; final EmailActionType emailActionType;
final dynamic exception;
MoveToMailboxFailure(this.emailActionType, this.exception); MoveToMailboxFailure(this.emailActionType, {dynamic exception}) : super(exception: exception);
@override @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 { class SendReceiptToSenderFailure extends FeatureFailure {
final dynamic exception; SendReceiptToSenderFailure(dynamic exception) : super(exception: exception);
SendReceiptToSenderFailure(this.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';
class StoreNewEmailLoading extends UIState {} class StoreNewEmailLoading extends UIState {}
@@ -7,7 +8,4 @@ class StoreNewEmailSuccess extends UIState {}
class StoreNewEmailFailure extends FeatureFailure { class StoreNewEmailFailure extends FeatureFailure {
StoreNewEmailFailure(dynamic exception) : super(exception: exception); StoreNewEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -8,7 +8,4 @@ class StoreOpenedEmailSuccess extends UIState {}
class StoreOpenedEmailFailure extends FeatureFailure { class StoreOpenedEmailFailure extends FeatureFailure {
StoreOpenedEmailFailure(dynamic exception) : super(exception: exception); StoreOpenedEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -17,7 +17,4 @@ class StoreSendingEmailSuccess extends UIState {
class StoreSendingEmailFailure extends FeatureFailure { class StoreSendingEmailFailure extends FeatureFailure {
StoreSendingEmailFailure(dynamic exception) : super(exception: exception); StoreSendingEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -33,10 +33,10 @@ class MarkAsEmailReadInteractor {
currentEmailState: currentEmailState, currentEmailState: currentEmailState,
currentMailboxState: currentMailboxState)); currentMailboxState: currentMailboxState));
} else { } else {
yield Left(MarkAsEmailReadFailure(null, readAction)); yield Left(MarkAsEmailReadFailure(readAction));
} }
} catch (e) { } catch (e) {
yield Left(MarkAsEmailReadFailure(e, readAction)); yield Left(MarkAsEmailReadFailure(readAction, exception: e));
} }
} }
} }
@@ -23,10 +23,10 @@ class MarkAsStarEmailInteractor {
markStarAction, markStarAction,
currentEmailState: currentEmailState)); currentEmailState: currentEmailState));
} else { } else {
yield Left(MarkAsStarEmailFailure(null, markStarAction)); yield Left(MarkAsStarEmailFailure(markStarAction));
} }
} catch (e) { } catch (e) {
yield Left(MarkAsStarEmailFailure(e, markStarAction)); yield Left(MarkAsStarEmailFailure(markStarAction, exception: e));
} }
} }
} }
@@ -37,10 +37,10 @@ class MoveToMailboxInteractor {
currentMailboxState: currentMailboxState, currentMailboxState: currentMailboxState,
currentEmailState: currentEmailState)); currentEmailState: currentEmailState));
} else { } else {
yield Left(MoveToMailboxFailure(moveRequest.emailActionType, null)); yield Left(MoveToMailboxFailure(moveRequest.emailActionType));
} }
} catch (e) { } 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/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class AuthenticateOidcOnBrowserLoading extends LoadingState { class AuthenticateOidcOnBrowserLoading extends LoadingState {}
AuthenticateOidcOnBrowserLoading(); class AuthenticateOidcOnBrowserSuccess extends UIState {}
@override
List<Object> get props => [];
}
class AuthenticateOidcOnBrowserSuccess extends UIState {
AuthenticateOidcOnBrowserSuccess();
@override
List<Object> get props => [];
}
class AuthenticateOidcOnBrowserFailure extends FeatureFailure { class AuthenticateOidcOnBrowserFailure extends FeatureFailure {
final dynamic exception;
AuthenticateOidcOnBrowserFailure(this.exception); AuthenticateOidcOnBrowserFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,12 +1,8 @@
import 'package:core/core.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:model/model.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/user/user_profile.dart';
class AuthenticationUserLoading extends LoadingState { class AuthenticationUserLoading extends LoadingState {}
AuthenticationUserLoading();
@override
List<Object> get props => [];
}
class AuthenticationUserSuccess extends UIState { class AuthenticationUserSuccess extends UIState {
final UserProfile userProfile; final UserProfile userProfile;
@@ -20,7 +16,4 @@ class AuthenticationUserSuccess extends UIState {
class AuthenticationUserFailure extends FeatureFailure { class AuthenticationUserFailure extends FeatureFailure {
AuthenticationUserFailure(dynamic exception) : super(exception: exception); 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:core/presentation/state/success.dart';
import 'package:model/oidc/response/oidc_response.dart'; import 'package:model/oidc/response/oidc_response.dart';
class CheckOIDCIsAvailableLoading extends LoadingState { class CheckOIDCIsAvailableLoading extends LoadingState {}
CheckOIDCIsAvailableLoading();
@override
List<Object> get props => [];
}
class CheckOIDCIsAvailableSuccess extends UIState { class CheckOIDCIsAvailableSuccess extends UIState {
final OIDCResponse oidcResponse; final OIDCResponse oidcResponse;
@@ -22,7 +16,4 @@ class CheckOIDCIsAvailableSuccess extends UIState {
class CheckOIDCIsAvailableFailure extends FeatureFailure { class CheckOIDCIsAvailableFailure extends FeatureFailure {
CheckOIDCIsAvailableFailure(dynamic exception) : super(exception: exception); 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 { class DeleteAuthorityOidcSuccess extends UIState {}
DeleteAuthorityOidcSuccess();
@override
List<Object> get props => [];
}
class DeleteAuthorityOidcFailure extends FeatureFailure { class DeleteAuthorityOidcFailure extends FeatureFailure {
final dynamic exception;
DeleteAuthorityOidcFailure(this.exception); DeleteAuthorityOidcFailure(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 DeleteCredentialSuccess extends UIState { class DeleteCredentialSuccess extends UIState {}
DeleteCredentialSuccess();
@override
List<Object> get props => [];
}
class DeleteCredentialFailure extends FeatureFailure { class DeleteCredentialFailure extends FeatureFailure {
final dynamic exception;
DeleteCredentialFailure(this.exception); DeleteCredentialFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -13,10 +13,6 @@ class GetAllRecentLoginUrlLatestSuccess extends UIState {
} }
class GetAllRecentLoginUrlLatestFailure extends FeatureFailure { class GetAllRecentLoginUrlLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentLoginUrlLatestFailure(this.exception); GetAllRecentLoginUrlLatestFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -13,10 +13,6 @@ class GetAllRecentLoginUsernameLatestSuccess extends UIState {
} }
class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure { class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentLoginUsernameLatestFailure(this.exception); GetAllRecentLoginUsernameLatestFailure(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:core/presentation/state/success.dart';
import 'package:model/account/personal_account.dart'; import 'package:model/account/personal_account.dart';
class NoAuthenticatedAccountFailure extends FeatureFailure { class NoAuthenticatedAccountFailure extends FeatureFailure {}
NoAuthenticatedAccountFailure();
@override
List<Object?> get props => [];
}
class GetAuthenticatedAccountSuccess extends UIState { class GetAuthenticatedAccountSuccess extends UIState {
final PersonalAccount account; final PersonalAccount account;
@@ -20,8 +14,6 @@ class GetAuthenticatedAccountSuccess extends UIState {
} }
class GetAuthenticatedAccountFailure extends FeatureFailure { class GetAuthenticatedAccountFailure extends FeatureFailure {
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
@override GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
List<Object?> get props => [exception];
} }
@@ -1,27 +1,11 @@
import 'package:core/presentation/state/failure.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class GetAuthenticationInfoLoading extends LoadingState { class GetAuthenticationInfoLoading extends LoadingState {}
GetAuthenticationInfoLoading(); class GetAuthenticationInfoSuccess extends UIState {}
@override
List<Object> get props => [];
}
class GetAuthenticationInfoSuccess extends UIState {
GetAuthenticationInfoSuccess();
@override
List<Object> get props => [];
}
class GetAuthenticationInfoFailure extends FeatureFailure { class GetAuthenticationInfoFailure extends FeatureFailure {
GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception); GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -17,7 +17,4 @@ class GetCredentialViewState extends UIState {
class GetCredentialFailure extends FeatureFailure { class GetCredentialFailure extends FeatureFailure {
GetCredentialFailure(dynamic exception) : super(exception: exception); GetCredentialFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,13 +1,8 @@
import 'package:core/core.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:model/model.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/oidc/oidc_configuration.dart';
class GetOIDCConfigurationLoading extends LoadingState { class GetOIDCConfigurationLoading extends LoadingState {}
GetOIDCConfigurationLoading();
@override
List<Object> get props => [];
}
class GetOIDCConfigurationSuccess extends UIState { class GetOIDCConfigurationSuccess extends UIState {
@@ -22,7 +17,4 @@ class GetOIDCConfigurationSuccess extends UIState {
class GetOIDCConfigurationFailure extends FeatureFailure { class GetOIDCConfigurationFailure extends FeatureFailure {
GetOIDCConfigurationFailure(dynamic exception) : super(exception: exception); 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:core/presentation/state/success.dart';
import 'package:model/oidc/response/oidc_response.dart'; import 'package:model/oidc/response/oidc_response.dart';
class GetOIDCIsAvailableLoading extends LoadingState { class GetOIDCIsAvailableLoading extends LoadingState {}
GetOIDCIsAvailableLoading();
@override
List<Object> get props => [];
}
class GetOIDCIsAvailableSuccess extends UIState { class GetOIDCIsAvailableSuccess extends UIState {
final OIDCResponse oidcResponse; final OIDCResponse oidcResponse;
@@ -22,7 +16,4 @@ class GetOIDCIsAvailableSuccess extends UIState {
class GetOIDCIsAvailableFailure extends FeatureFailure { class GetOIDCIsAvailableFailure extends FeatureFailure {
GetOIDCIsAvailableFailure(dynamic exception) : super(exception: exception); 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:core/presentation/state/success.dart';
import 'package:model/oidc/oidc_configuration.dart'; import 'package:model/oidc/oidc_configuration.dart';
class GetStoredOidcConfigurationLoading extends LoadingState { class GetStoredOidcConfigurationLoading extends LoadingState {}
GetStoredOidcConfigurationLoading();
@override
List<Object?> get props => [];
}
class GetStoredOidcConfigurationSuccess extends UIState { class GetStoredOidcConfigurationSuccess extends UIState {
final OIDCConfiguration oidcConfiguration; final OIDCConfiguration oidcConfiguration;
@@ -20,10 +14,6 @@ class GetStoredOidcConfigurationSuccess extends UIState {
} }
class GetStoredOidcConfigurationFailure extends FeatureFailure { class GetStoredOidcConfigurationFailure extends FeatureFailure {
final dynamic exception;
GetStoredOidcConfigurationFailure(this.exception); GetStoredOidcConfigurationFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -15,13 +15,6 @@ class GetStoredTokenOidcSuccess extends UIState {
} }
class GetStoredTokenOidcFailure extends FeatureFailure { class GetStoredTokenOidcFailure extends FeatureFailure {
final dynamic exception;
GetStoredTokenOidcFailure(this.exception); GetStoredTokenOidcFailure(dynamic exception) : super(exception: exception);
@override
bool? get stringify => true;
@override
List<Object?> get props => [exception];
} }
@@ -1,13 +1,9 @@
import 'package:core/core.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:model/model.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 { class GetTokenOIDCLoading extends LoadingState {}
GetTokenOIDCLoading();
@override
List<Object> get props => [];
}
class GetTokenOIDCSuccess extends UIState { class GetTokenOIDCSuccess extends UIState {
@@ -23,7 +19,4 @@ class GetTokenOIDCSuccess extends UIState {
class GetTokenOIDCFailure extends FeatureFailure { class GetTokenOIDCFailure extends FeatureFailure {
GetTokenOIDCFailure(dynamic exception) : super(exception: exception); GetTokenOIDCFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,5 +1,6 @@
import 'package:core/core.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:model/model.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/oidc/token_oidc.dart';
class RefreshTokenOIDCSuccess extends UIState { class RefreshTokenOIDCSuccess extends UIState {
@@ -12,10 +13,6 @@ class RefreshTokenOIDCSuccess extends UIState {
} }
class RefreshTokenOIDCFailure extends FeatureFailure { class RefreshTokenOIDCFailure extends FeatureFailure {
final dynamic exception;
RefreshTokenOIDCFailure(this.exception); RefreshTokenOIDCFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,20 +1,9 @@
import 'package:core/presentation/state/failure.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class SaveRecentLoginUrlSuccess extends UIState { class SaveRecentLoginUrlSuccess extends UIState {}
SaveRecentLoginUrlSuccess();
@override
List<Object> get props => [];
}
class SaveRecentLoginUrlFailed extends FeatureFailure { 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/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class SaveRecentLoginUsernameSuccess extends UIState { class SaveRecentLoginUsernameSuccess extends UIState {}
SaveRecentLoginUsernameSuccess();
@override
List<Object> get props => [];
}
class SaveRecentLoginUsernameFailed extends FeatureFailure { 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 UpdateAuthenticationAccountLoading extends LoadingState {}
class UpdateAuthenticationAccountSuccess extends UIState { class UpdateAuthenticationAccountSuccess extends UIState {}
UpdateAuthenticationAccountSuccess();
@override
List<Object> get props => [];
}
class UpdateAuthenticationAccountFailure extends FeatureFailure { class UpdateAuthenticationAccountFailure extends FeatureFailure {
final dynamic exception;
UpdateAuthenticationAccountFailure(this.exception); UpdateAuthenticationAccountFailure(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/mail/mailbox/mailbox.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/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap; import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -15,14 +16,10 @@ class CreateNewMailboxSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [newMailbox]; List<Object?> get props => [newMailbox, ...super.props];
} }
class CreateNewMailboxFailure extends FeatureFailure { class CreateNewMailboxFailure extends FeatureFailure {
final dynamic exception;
CreateNewMailboxFailure(this.exception); CreateNewMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -16,7 +16,7 @@ class DeleteMultipleMailboxAllSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [listMailboxIdDeleted]; List<Object?> get props => [listMailboxIdDeleted, ...super.props];
} }
class DeleteMultipleMailboxHasSomeSuccess extends UIActionState { class DeleteMultipleMailboxHasSomeSuccess extends UIActionState {
@@ -29,22 +29,12 @@ class DeleteMultipleMailboxHasSomeSuccess extends UIActionState {
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override @override
List<Object?> get props => [listMailboxIdDeleted]; List<Object?> get props => [listMailboxIdDeleted, ...super.props];
} }
class DeleteMultipleMailboxAllFailure extends FeatureFailure { class DeleteMultipleMailboxAllFailure extends FeatureFailure {}
DeleteMultipleMailboxAllFailure();
@override
List<Object> get props => [];
}
class DeleteMultipleMailboxFailure extends FeatureFailure { class DeleteMultipleMailboxFailure extends FeatureFailure {
final dynamic exception;
DeleteMultipleMailboxFailure(this.exception); DeleteMultipleMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -16,10 +16,6 @@ class GetAllMailboxSuccess extends UIState {
} }
class GetAllMailboxFailure extends FeatureFailure { class GetAllMailboxFailure extends FeatureFailure {
final dynamic exception;
GetAllMailboxFailure(this.exception); GetAllMailboxFailure(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/core/state.dart' as jmap;
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.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/base/state/ui_action_state.dart';
class MarkAsMailboxReadLoading extends UIState { class MarkAsMailboxReadLoading extends UIState {}
MarkAsMailboxReadLoading();
@override
List<Object?> get props => [];
}
class UpdatingMarkAsMailboxReadState extends UIState { class UpdatingMarkAsMailboxReadState extends UIState {
@@ -38,7 +33,10 @@ class MarkAsMailboxReadAllSuccess extends UIActionState {
) : super(currentMailboxState, currentEmailState); ) : super(currentMailboxState, currentEmailState);
@override @override
List<Object?> get props => [mailboxDisplayName]; List<Object?> get props => [
mailboxDisplayName,
...super.props
];
} }
class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState { class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
@@ -56,22 +54,16 @@ class MarkAsMailboxReadHasSomeEmailFailure extends UIActionState {
) : super(currentMailboxState, currentEmailState); ) : super(currentMailboxState, currentEmailState);
@override @override
List<Object?> get props => [mailboxDisplayName, countEmailsRead]; List<Object?> get props => [
mailboxDisplayName,
countEmailsRead,
...super.props
];
} }
class MarkAsMailboxReadAllFailure extends FeatureFailure { class MarkAsMailboxReadAllFailure extends FeatureFailure {}
MarkAsMailboxReadAllFailure();
@override
List<Object?> get props => [];
}
class MarkAsMailboxReadFailure extends FeatureFailure { class MarkAsMailboxReadFailure extends FeatureFailure {
final dynamic exception;
MarkAsMailboxReadFailure(this.exception); MarkAsMailboxReadFailure(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/mail/mailbox/mailbox.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/base/state/ui_action_state.dart';
import 'package:tmail_ui_user/features/email/domain/model/move_action.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 { class MoveMailboxFailure extends FeatureFailure {
MoveMailboxFailure(dynamic exception) : super(exception: exception); 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:jmap_dart_client/jmap/core/state.dart';
import 'package:model/mailbox/presentation_mailbox.dart'; import 'package:model/mailbox/presentation_mailbox.dart';
@@ -16,10 +17,6 @@ class RefreshChangesAllMailboxSuccess extends UIState {
} }
class RefreshChangesAllMailboxFailure extends FeatureFailure { class RefreshChangesAllMailboxFailure extends FeatureFailure {
final dynamic exception;
RefreshChangesAllMailboxFailure(this.exception); RefreshChangesAllMailboxFailure(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:tmail_ui_user/features/base/state/ui_action_state.dart'; import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap; import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -10,16 +11,9 @@ class RenameMailboxSuccess extends UIActionState {
jmap.State? currentEmailState, jmap.State? currentEmailState,
jmap.State? currentMailboxState, jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
} }
class RenameMailboxFailure extends FeatureFailure { class RenameMailboxFailure extends FeatureFailure {
final dynamic exception;
RenameMailboxFailure(this.exception); RenameMailboxFailure(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:model/mailbox/presentation_mailbox.dart'; import 'package:model/mailbox/presentation_mailbox.dart';
class LoadingSearchMailbox extends UIState {} class LoadingSearchMailbox extends UIState {}
@@ -14,10 +15,6 @@ class SearchMailboxSuccess extends UIState {
} }
class SearchMailboxFailure extends FeatureFailure { class SearchMailboxFailure extends FeatureFailure {
final dynamic exception;
SearchMailboxFailure(this.exception); SearchMailboxFailure(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/mail/mailbox/mailbox.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/base/state/ui_action_state.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap; import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
@@ -23,15 +24,11 @@ class SubscribeMailboxSuccess extends UIActionState {
List<Object?> get props => [ List<Object?> get props => [
mailboxId, mailboxId,
subscribeAction, subscribeAction,
super.props ...super.props
]; ];
} }
class SubscribeMailboxFailure extends FeatureFailure { class SubscribeMailboxFailure extends FeatureFailure {
final dynamic exception;
SubscribeMailboxFailure(this.exception); SubscribeMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object> get props => [exception];
} }
@@ -28,7 +28,7 @@ class SubscribeMultipleMailboxAllSuccess extends UIActionState {
parentMailboxId, parentMailboxId,
mailboxIdsSubscribe, mailboxIdsSubscribe,
subscribeAction, subscribeAction,
super.props ...super.props
]; ];
} }
@@ -53,23 +53,13 @@ class SubscribeMultipleMailboxHasSomeSuccess extends UIActionState {
parentMailboxId, parentMailboxId,
mailboxIdsSubscribe, mailboxIdsSubscribe,
subscribeAction, subscribeAction,
super.props ...super.props
]; ];
} }
class SubscribeMultipleMailboxAllFailure extends FeatureFailure { class SubscribeMultipleMailboxAllFailure extends FeatureFailure {}
SubscribeMultipleMailboxAllFailure();
@override
List<Object> get props => [];
}
class SubscribeMultipleMailboxFailure extends FeatureFailure { class SubscribeMultipleMailboxFailure extends FeatureFailure {
final dynamic exception;
SubscribeMultipleMailboxFailure(this.exception); SubscribeMultipleMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object> get props => [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 {}
class VerifyNameViewState extends UIState {
VerifyNameViewState();
@override
List<Object> get props => [];
}
class VerifyNameFailure extends FeatureFailure { class VerifyNameFailure extends FeatureFailure {
final dynamic exception;
VerifyNameFailure(this.exception); VerifyNameFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
class DeleteLastTimeDismissedSpamReportedLoading extends UIState {} class DeleteLastTimeDismissedSpamReportedLoading extends UIState {}
class DeleteLastTimeDismissedSpamReportedSuccess extends UIState { class DeleteLastTimeDismissedSpamReportedSuccess extends UIState {}
DeleteLastTimeDismissedSpamReportedSuccess();
@override
List<Object> get props => [];
}
class DeleteLastTimeDismissedSpamReportedFailure extends FeatureFailure { class DeleteLastTimeDismissedSpamReportedFailure extends FeatureFailure {
final dynamic exception;
DeleteLastTimeDismissedSpamReportedFailure(this.exception); DeleteLastTimeDismissedSpamReportedFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
class DeleteSpamReportStateLoading extends UIState {} class DeleteSpamReportStateLoading extends UIState {}
class DeleteSpamReportStateSuccess extends UIState { class DeleteSpamReportStateSuccess extends UIState {}
DeleteSpamReportStateSuccess();
@override
List<Object> get props => [];
}
class DeleteSpamReportStateFailure extends FeatureFailure { class DeleteSpamReportStateFailure extends FeatureFailure {
final dynamic exception;
DeleteSpamReportStateFailure(this.exception); DeleteSpamReportStateFailure(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:tmail_ui_user/features/mailbox_dashboard/domain/model/recent_search.dart'; import 'package:tmail_ui_user/features/mailbox_dashboard/domain/model/recent_search.dart';
class GetAllRecentSearchLatestSuccess extends UIState { class GetAllRecentSearchLatestSuccess extends UIState {
@@ -12,10 +13,6 @@ class GetAllRecentSearchLatestSuccess extends UIState {
} }
class GetAllRecentSearchLatestFailure extends FeatureFailure { class GetAllRecentSearchLatestFailure extends FeatureFailure {
final dynamic exception;
GetAllRecentSearchLatestFailure(this.exception); GetAllRecentSearchLatestFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -15,10 +15,6 @@ class GetAppDashboardConfigurationSuccess extends UIState {
} }
class GetAppDashboardConfigurationFailure extends FeatureFailure { class GetAppDashboardConfigurationFailure extends FeatureFailure {
final dynamic exception;
GetAppDashboardConfigurationFailure(this.exception); GetAppDashboardConfigurationFailure(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:tmail_ui_user/features/mailbox_dashboard/data/model/composer_cache.dart'; import 'package:tmail_ui_user/features/mailbox_dashboard/data/model/composer_cache.dart';
class GetComposerCacheSuccess extends UIState { class GetComposerCacheSuccess extends UIState {
@@ -12,10 +13,6 @@ class GetComposerCacheSuccess extends UIState {
} }
class GetComposerCacheFailure extends FeatureFailure { class GetComposerCacheFailure extends FeatureFailure {
final dynamic exception;
GetComposerCacheFailure(this.exception); GetComposerCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -19,10 +19,6 @@ class InvalidSpamReportCondition extends FeatureFailure {
} }
class GetUnreadSpamMailboxFailure extends FeatureFailure { class GetUnreadSpamMailboxFailure extends FeatureFailure {
final dynamic exception;
GetUnreadSpamMailboxFailure(this.exception); GetUnreadSpamMailboxFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -17,7 +17,4 @@ class GetSpamMailboxCachedSuccess extends UIState {
class GetSpamMailboxCachedFailure extends FeatureFailure { class GetSpamMailboxCachedFailure extends FeatureFailure {
GetSpamMailboxCachedFailure(exception) : super(exception: exception); GetSpamMailboxCachedFailure(exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -14,10 +14,6 @@ class GetSpamReportStateSuccess extends UIState {
} }
class GetSpamReportStateFailure extends FeatureFailure { class GetSpamReportStateFailure extends FeatureFailure {
final dynamic exception;
GetSpamReportStateFailure(this.exception); GetSpamReportStateFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,5 +1,6 @@
import 'package:core/core.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:model/model.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/user/user_profile.dart';
class GetUserProfileSuccess extends UIState { class GetUserProfileSuccess extends UIState {
final UserProfile userProfile; final UserProfile userProfile;
@@ -11,10 +12,6 @@ class GetUserProfileSuccess extends UIState {
} }
class GetUserProfileFailure extends FeatureFailure { class GetUserProfileFailure extends FeatureFailure {
final dynamic exception;
GetUserProfileFailure(this.exception); GetUserProfileFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,5 +1,5 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/core.dart'; import 'package:core/presentation/state/success.dart';
import 'package:model/email/presentation_email.dart'; import 'package:model/email/presentation_email.dart';
class QuickSearchEmailSuccess extends UIState { class QuickSearchEmailSuccess extends UIState {
@@ -12,10 +12,6 @@ class QuickSearchEmailSuccess extends UIState {
} }
class QuickSearchEmailFailure extends FeatureFailure { class QuickSearchEmailFailure extends FeatureFailure {
final dynamic exception;
QuickSearchEmailFailure(this.exception); QuickSearchEmailFailure(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';
class RemoveComposerCacheSuccess extends UIState { class RemoveComposerCacheSuccess extends UIState {
@@ -9,10 +10,6 @@ class RemoveComposerCacheSuccess extends UIState {
} }
class RemoveComposerCacheFailure extends FeatureFailure { class RemoveComposerCacheFailure extends FeatureFailure {
final dynamic exception;
RemoveComposerCacheFailure(this.exception); RemoveComposerCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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/core/state.dart' as jmap;
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart'; 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? currentEmailState,
jmap.State? currentMailboxState, jmap.State? currentMailboxState,
}) : super(currentEmailState, currentMailboxState); }) : super(currentEmailState, currentMailboxState);
@override
List<Object?> get props => [];
} }
class RemoveEmailDraftsFailure extends FeatureFailure { class RemoveEmailDraftsFailure extends FeatureFailure {
final dynamic exception;
RemoveEmailDraftsFailure(this.exception); RemoveEmailDraftsFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class SaveComposerCacheSuccess extends UIState {}
SaveComposerCacheSuccess();
@override
List<Object> get props => [];
}
class SaveComposerCacheFailure extends FeatureFailure { class SaveComposerCacheFailure extends FeatureFailure {
final dynamic exception;
SaveComposerCacheFailure(this.exception); SaveComposerCacheFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 { class SaveRecentSearchSuccess extends UIState {}
SaveRecentSearchSuccess();
@override
List<Object> get props => [];
}
class SaveRecentSearchFailure extends FeatureFailure { class SaveRecentSearchFailure extends FeatureFailure {
final dynamic exception;
SaveRecentSearchFailure(this.exception); SaveRecentSearchFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
class StoreLastTimeDismissedSpamReportLoading extends UIState {} class StoreLastTimeDismissedSpamReportLoading extends UIState {}
class StoreLastTimeDismissedSpamReportSuccess extends UIState { class StoreLastTimeDismissedSpamReportSuccess extends UIState {}
StoreLastTimeDismissedSpamReportSuccess();
@override
List<Object> get props => [];
}
class StoreLastTimeDismissedSpamReportFailure extends FeatureFailure { class StoreLastTimeDismissedSpamReportFailure extends FeatureFailure {
final dynamic exception;
StoreLastTimeDismissedSpamReportFailure(this.exception); StoreLastTimeDismissedSpamReportFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -10,14 +10,10 @@ class StoreSpamReportStateSuccess extends UIState {
StoreSpamReportStateSuccess(this.spamReportState); StoreSpamReportStateSuccess(this.spamReportState);
@override @override
List<Object> get props => []; List<Object> get props => [spamReportState];
} }
class StoreSpamReportStateFailure extends FeatureFailure { class StoreSpamReportStateFailure extends FeatureFailure {
final dynamic exception;
StoreSpamReportStateFailure(this.exception); StoreSpamReportStateFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -12,10 +12,6 @@ class AddRecipientsInForwardingSuccess extends UIState {
} }
class AddRecipientsInForwardingFailure extends FeatureFailure { class AddRecipientsInForwardingFailure extends FeatureFailure {
final dynamic exception;
AddRecipientsInForwardingFailure(this.exception); AddRecipientsInForwardingFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -14,10 +14,6 @@ class CreateNewDefaultIdentitySuccess extends UIState {
} }
class CreateNewDefaultIdentityFailure extends FeatureFailure { class CreateNewDefaultIdentityFailure extends FeatureFailure {
final dynamic exception;
CreateNewDefaultIdentityFailure(this.exception); CreateNewDefaultIdentityFailure(dynamic exception) : super(exception: exception);
@override
List<Object> get props => [exception];
} }
@@ -14,10 +14,6 @@ class CreateNewIdentitySuccess extends UIState {
} }
class CreateNewIdentityFailure extends FeatureFailure { class CreateNewIdentityFailure extends FeatureFailure {
final dynamic exception;
CreateNewIdentityFailure(this.exception); CreateNewIdentityFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -13,10 +13,6 @@ class CreateNewRuleFilterSuccess extends UIState {
} }
class CreateNewRuleFilterFailure extends FeatureFailure { class CreateNewRuleFilterFailure extends FeatureFailure {
final dynamic exception;
CreateNewRuleFilterFailure(this.exception); CreateNewRuleFilterFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -11,10 +11,6 @@ class DeleteEmailRuleSuccess extends UIState {
} }
class DeleteEmailRuleFailure extends FeatureFailure { class DeleteEmailRuleFailure extends FeatureFailure {
final dynamic exception;
DeleteEmailRuleFailure(this.exception); DeleteEmailRuleFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -11,10 +11,6 @@ class DeleteIdentitySuccess extends UIState {
} }
class DeleteIdentityFailure extends FeatureFailure { class DeleteIdentityFailure extends FeatureFailure {
final dynamic exception;
DeleteIdentityFailure(this.exception); DeleteIdentityFailure(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:core/presentation/state/success.dart';
import 'package:forward/forward/tmail_forward.dart'; import 'package:forward/forward/tmail_forward.dart';
class StartDeleteRecipientInForwarding extends UIState { class StartDeleteRecipientInForwarding extends UIState {}
StartDeleteRecipientInForwarding();
@override
List<Object?> get props => [];
}
class DeleteRecipientInForwardingSuccess extends UIState { class DeleteRecipientInForwardingSuccess extends UIState {
final TMailForward forward; final TMailForward forward;
@@ -20,10 +14,6 @@ class DeleteRecipientInForwardingSuccess extends UIState {
} }
class DeleteRecipientInForwardingFailure extends FeatureFailure { class DeleteRecipientInForwardingFailure extends FeatureFailure {
final dynamic exception;
DeleteRecipientInForwardingFailure(this.exception); DeleteRecipientInForwardingFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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'; import 'package:tmail_ui_user/features/manage_account/domain/state/edit_identity_state.dart';
class EditDefaultIdentityLoading extends UIState {} class EditDefaultIdentityLoading extends UIState {}
class EditDefaultIdentitySuccess extends EditIdentitySuccess { class EditDefaultIdentitySuccess extends EditIdentitySuccess {}
EditDefaultIdentitySuccess();
@override
List<Object?> get props => [];
}
class EditDefaultIdentityFailure extends FeatureFailure { class EditDefaultIdentityFailure extends FeatureFailure {
final dynamic exception;
EditDefaultIdentityFailure(this.exception); EditDefaultIdentityFailure(dynamic exception) : super(exception: exception);
@override
List<Object> get props => [exception];
} }
@@ -13,10 +13,6 @@ class EditEmailRuleFilterSuccess extends UIState {
} }
class EditEmailRuleFilterFailure extends FeatureFailure { class EditEmailRuleFilterFailure extends FeatureFailure {
final dynamic exception;
EditEmailRuleFilterFailure(this.exception); EditEmailRuleFilterFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [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 EditIdentityLoading extends UIState {}
class EditIdentitySuccess extends UIState { class EditIdentitySuccess extends UIState {}
EditIdentitySuccess();
@override
List<Object?> get props => [];
}
class EditIdentityFailure extends FeatureFailure { class EditIdentityFailure extends FeatureFailure {
final dynamic exception;
EditIdentityFailure(this.exception); EditIdentityFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -12,10 +12,6 @@ class EditLocalCopyInForwardingSuccess extends UIState {
} }
class EditLocalCopyInForwardingFailure extends FeatureFailure { class EditLocalCopyInForwardingFailure extends FeatureFailure {
final dynamic exception;
EditLocalCopyInForwardingFailure(this.exception); EditLocalCopyInForwardingFailure(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:jmap_dart_client/jmap/core/state.dart';
import 'package:jmap_dart_client/jmap/identities/identity.dart'; import 'package:jmap_dart_client/jmap/identities/identity.dart';
@@ -15,10 +16,6 @@ class GetAllIdentitiesSuccess extends UIState {
} }
class GetAllIdentitiesFailure extends FeatureFailure { class GetAllIdentitiesFailure extends FeatureFailure {
final dynamic exception;
GetAllIdentitiesFailure(this.exception); GetAllIdentitiesFailure(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:rule_filter/rule_filter/tmail_rule.dart'; import 'package:rule_filter/rule_filter/tmail_rule.dart';
class GetAllRulesSuccess extends UIState { class GetAllRulesSuccess extends UIState {
@@ -11,10 +12,6 @@ class GetAllRulesSuccess extends UIState {
} }
class GetAllRulesFailure extends FeatureFailure { class GetAllRulesFailure extends FeatureFailure {
final dynamic exception;
GetAllRulesFailure(this.exception); GetAllRulesFailure(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:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart'; import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
class LoadingGetAllVacation extends UIState { class LoadingGetAllVacation extends UIState {}
LoadingGetAllVacation();
@override
List<Object?> get props => [];
}
class GetAllVacationSuccess extends UIState { class GetAllVacationSuccess extends UIState {
final List<VacationResponse> listVacationResponse; final List<VacationResponse> listVacationResponse;
@@ -20,10 +14,6 @@ class GetAllVacationSuccess extends UIState {
} }
class GetAllVacationFailure extends FeatureFailure { class GetAllVacationFailure extends FeatureFailure {
final dynamic exception;
GetAllVacationFailure(this.exception); GetAllVacationFailure(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:forward/forward/tmail_forward.dart'; import 'package:forward/forward/tmail_forward.dart';
class GetForwardSuccess extends UIState { class GetForwardSuccess extends UIState {
@@ -11,10 +12,6 @@ class GetForwardSuccess extends UIState {
} }
class GetForwardFailure extends FeatureFailure { class GetForwardFailure extends FeatureFailure {
final dynamic exception;
GetForwardFailure(this.exception); GetForwardFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -2,19 +2,9 @@
import 'package:core/presentation/state/failure.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class LogoutOidcSuccess extends UIState { class LogoutOidcSuccess extends UIState {}
LogoutOidcSuccess();
@override
List<Object> get props => [];
}
class LogoutOidcFailure extends FeatureFailure { class LogoutOidcFailure extends FeatureFailure {
final dynamic exception;
LogoutOidcFailure(this.exception); LogoutOidcFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,14 +1,8 @@
import 'dart:ui'; 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 {}
class SavingLanguage extends UIState {
SavingLanguage();
@override
List<Object?> get props => [];
}
class SaveLanguageSuccess extends UIState { class SaveLanguageSuccess extends UIState {
@@ -21,10 +15,6 @@ class SaveLanguageSuccess extends UIState {
} }
class SaveLanguageFailure extends FeatureFailure { class SaveLanguageFailure extends FeatureFailure {
final dynamic exception;
SaveLanguageFailure(this.exception); SaveLanguageFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -1,13 +1,7 @@
import 'package:core/presentation/state/failure.dart'; import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart'; import 'package:core/presentation/state/success.dart';
class TransformHtmlSignatureLoading extends UIState { class TransformHtmlSignatureLoading extends UIState {}
TransformHtmlSignatureLoading();
@override
List<Object?> get props => [];
}
class TransformHtmlSignatureSuccess extends UIState { class TransformHtmlSignatureSuccess extends UIState {
final String signature; final String signature;
@@ -21,7 +15,4 @@ class TransformHtmlSignatureSuccess extends UIState {
class TransformHtmlSignatureFailure extends FeatureFailure { class TransformHtmlSignatureFailure extends FeatureFailure {
TransformHtmlSignatureFailure(exception) : super(exception: exception); 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:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart'; import 'package:jmap_dart_client/jmap/mail/vacation/vacation_response.dart';
class LoadingUpdateVacation extends UIState { class LoadingUpdateVacation extends UIState {}
LoadingUpdateVacation();
@override
List<Object?> get props => [];
}
class UpdateVacationSuccess extends UIState { class UpdateVacationSuccess extends UIState {
final List<VacationResponse> listVacationResponse; final List<VacationResponse> listVacationResponse;
@@ -20,10 +14,6 @@ class UpdateVacationSuccess extends UIState {
} }
class UpdateVacationFailure extends FeatureFailure { class UpdateVacationFailure extends FeatureFailure {
final dynamic exception;
UpdateVacationFailure(this.exception); UpdateVacationFailure(exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }
@@ -13,10 +13,6 @@ class DeleteEmailStateToRefreshSuccess extends UIState {
} }
class DeleteEmailStateToRefreshFailure extends FeatureFailure { class DeleteEmailStateToRefreshFailure extends FeatureFailure {
final dynamic exception;
DeleteEmailStateToRefreshFailure(this.exception); DeleteEmailStateToRefreshFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
} }

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