TF-3372 Worker adds progress state to onProgressController in mobile/web

This commit is contained in:
Dat PHAM HOANG
2024-12-30 22:05:26 +07:00
committed by Dat H. Pham
parent e327cf6b9c
commit a81d33f98b
2 changed files with 36 additions and 2 deletions
@@ -1,6 +1,7 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
class EmptySpamFolderLoading extends LoadingState {}
@@ -17,4 +18,15 @@ class EmptySpamFolderSuccess extends UIState {
class EmptySpamFolderFailure extends FeatureFailure {
EmptySpamFolderFailure(dynamic exception) : super(exception: exception);
}
class EmptyingFolderState extends UIState {
final MailboxId mailboxId;
final int countEmailsDeleted;
final int totalEmails;
EmptyingFolderState(this.mailboxId, this.countEmailsDeleted, this.totalEmails);
@override
List<Object?> get props => [mailboxId, countEmailsDeleted, totalEmails];
}