TF-1667 Implement GetSpamMailboxCached interactor

(cherry picked from commit ffe62c58aa46526ea34536bac17862b5c16aa9ac)
This commit is contained in:
dab246
2023-04-05 15:30:34 +07:00
committed by Dat Vu
parent 308f4d3961
commit 72055cfccb
8 changed files with 147 additions and 1 deletions
@@ -0,0 +1,23 @@
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 GetSpamMailboxCachedLoading extends UIState {}
class GetSpamMailboxCachedSuccess extends UIState {
final Mailbox spamMailbox;
GetSpamMailboxCachedSuccess(this.spamMailbox);
@override
List<Object> get props => [spamMailbox];
}
class GetSpamMailboxCachedFailure extends FeatureFailure {
GetSpamMailboxCachedFailure(exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}