TF-2102 Add restore_deleted_message interactors
(cherry picked from commit ba81255c213c49ecce7afdeca25a5cd7657c3816)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:email_recovery/email_recovery/email_recovery_action.dart';
|
||||
|
||||
class GetRestoredDeletedMessageLoading extends LoadingState {}
|
||||
|
||||
class GetRestoredDeletedMessageSuccess extends UIState {
|
||||
final EmailRecoveryAction emailRecoveryAction;
|
||||
|
||||
GetRestoredDeletedMessageSuccess(this.emailRecoveryAction);
|
||||
|
||||
@override
|
||||
List<Object> get props => [emailRecoveryAction];
|
||||
}
|
||||
|
||||
class GetRestoredDeletedMessageFailure extends FeatureFailure {
|
||||
GetRestoredDeletedMessageFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:email_recovery/email_recovery/email_recovery_action.dart';
|
||||
|
||||
class RestoreDeletedMessageLoading extends LoadingState {}
|
||||
|
||||
class RestoreDeletedMessageSuccess extends UIState {
|
||||
final EmailRecoveryAction emailRecoveryAction;
|
||||
|
||||
RestoreDeletedMessageSuccess(this.emailRecoveryAction);
|
||||
|
||||
@override
|
||||
List<Object> get props => [emailRecoveryAction];
|
||||
}
|
||||
|
||||
class RestoreDeletedMessageFailure extends FeatureFailure {
|
||||
RestoreDeletedMessageFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user