TF-2101 Handle restore deleted messages

(cherry picked from commit e675f98a6c85d9c4a90efc686e6ff72d23b4c678)
This commit is contained in:
hieubt
2023-12-21 16:56:06 +07:00
committed by Dat H. Pham
parent 4f6b500fa0
commit 71dc206ccd
30 changed files with 457 additions and 99 deletions
@@ -0,0 +1,20 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
class GetMailboxByRoleLoading extends LoadingState {}
class GetMailboxByRoleSuccess extends UIState {
final Mailbox mailbox;
GetMailboxByRoleSuccess(this.mailbox);
@override
List<Object> get props => [mailbox];
}
class InvalidMailboxRole extends FeatureFailure {}
class GetMailboxByRoleFailure extends FeatureFailure {
GetMailboxByRoleFailure(dynamic exception) : super(exception: exception);
}