TF-1311: [Presentation]: Handle show toastMsg when hide mailbox
This commit is contained in:
@@ -1,19 +1,31 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
|
||||
import 'package:tmail_ui_user/features/mailbox/domain/model/mailbox_subscribe_action_state.dart';
|
||||
|
||||
class LoadingSubscribeMailbox extends UIState {}
|
||||
|
||||
class SubscribeMailboxSuccess extends UIActionState {
|
||||
final PresentationMailbox mailbox;
|
||||
final MailboxSubscribeStateAction mailboxSubscribeStateAction;
|
||||
|
||||
SubscribeMailboxSuccess({
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}) : super(currentEmailState, currentMailboxState);
|
||||
SubscribeMailboxSuccess(
|
||||
this.mailbox,
|
||||
this.mailboxSubscribeStateAction,
|
||||
{
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}
|
||||
) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
List<Object?> get props => [
|
||||
mailbox,
|
||||
currentEmailState,
|
||||
currentMailboxState,
|
||||
mailboxSubscribeStateAction
|
||||
];
|
||||
}
|
||||
|
||||
class SubscribeMailboxFailure extends FeatureFailure {
|
||||
|
||||
Reference in New Issue
Block a user