TF-3385 Update save and remove draft email
This commit is contained in:
@@ -1,17 +1,19 @@
|
||||
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 SaveEmailAsDraftsLoading extends LoadingState {}
|
||||
|
||||
class SaveEmailAsDraftsSuccess extends UIState {
|
||||
|
||||
final EmailId emailId;
|
||||
final MailboxId? draftMailboxId;
|
||||
|
||||
SaveEmailAsDraftsSuccess(this.emailId);
|
||||
SaveEmailAsDraftsSuccess(this.emailId, this.draftMailboxId);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [emailId, ...super.props];
|
||||
List<Object?> get props => [emailId, draftMailboxId, ...super.props];
|
||||
}
|
||||
|
||||
class SaveEmailAsDraftsFailure extends FeatureFailure {
|
||||
|
||||
Reference in New Issue
Block a user