TF-1708 Update props properties for all state object in interactor
(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user