TF-4195 Add Label to Thread

This commit is contained in:
dab246
2026-01-06 12:35:13 +07:00
committed by Dat H. Pham
parent ef1efc9310
commit 94fd6f8071
34 changed files with 829 additions and 40 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 AddingALabelToAThread extends LoadingState {}
class AddALabelToAThreadSuccess extends UIState {
final List<EmailId> emailIds;
final KeyWordIdentifier labelKeyword;
final String labelDisplay;
AddALabelToAThreadSuccess(this.emailIds, this.labelKeyword, this.labelDisplay);
@override
List<Object> get props => [emailIds, labelKeyword, labelDisplay];
}
class AddALabelToAThreadFailure extends FeatureFailure {
final String labelDisplay;
AddALabelToAThreadFailure({
dynamic exception,
required this.labelDisplay,
}) : super(exception: exception);
@override
List<Object?> get props => [...super.props, labelDisplay];
}