TF-1667 Implement GetSpamMailboxCached interactor
(cherry picked from commit ffe62c58aa46526ea34536bac17862b5c16aa9ac)
This commit is contained in:
@@ -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];
|
||||
}
|
||||
Reference in New Issue
Block a user