TF-2101 Handle restore deleted messages
(cherry picked from commit e675f98a6c85d9c4a90efc686e6ff72d23b4c678)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user