TF-1718 Add unsubscribeMail method to datasource/repository/interactor on jmap server
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit f9159b651866fbe8e2a1866231b5413cecc5b597)
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:tmail_ui_user/features/base/state/ui_action_state.dart';
|
||||
|
||||
class UnsubscribeEmailLoading extends LoadingState {}
|
||||
|
||||
class UnsubscribeEmailSuccess extends UIActionState {
|
||||
final Email newEmail;
|
||||
|
||||
UnsubscribeEmailSuccess(
|
||||
this.newEmail,
|
||||
{
|
||||
jmap.State? currentEmailState,
|
||||
jmap.State? currentMailboxState,
|
||||
}
|
||||
) : super(currentEmailState, currentMailboxState);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [newEmail, ...super.props];
|
||||
}
|
||||
|
||||
class UnsubscribeEmailFailure extends FeatureFailure {
|
||||
|
||||
UnsubscribeEmailFailure({dynamic exception}) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user