TF-4236 Add repository/interactor for remove a label from an email

This commit is contained in:
dab246
2026-01-09 09:32:31 +07:00
committed by Dat H. Pham
parent bbe085a86c
commit 36e573db23
10 changed files with 163 additions and 0 deletions
@@ -0,0 +1,29 @@
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/email/keyword_identifier.dart';
class RemovingALabelFromAnEmail extends LoadingState {}
class RemoveALabelFromAnEmailSuccess extends UIState {
final EmailId emailId;
final KeyWordIdentifier labelKeyword;
final String labelDisplay;
RemoveALabelFromAnEmailSuccess(this.emailId, this.labelKeyword, this.labelDisplay);
@override
List<Object> get props => [emailId, labelKeyword, labelDisplay];
}
class RemoveALabelFromAnEmailFailure extends FeatureFailure {
final String labelDisplay;
RemoveALabelFromAnEmailFailure({
dynamic exception,
required this.labelDisplay,
}) : super(exception: exception);
@override
List<Object?> get props => [...super.props, labelDisplay];
}