TF-4308 add domain state, interactor, model extensions, and localization

This commit is contained in:
Dang Dat
2026-04-01 16:16:45 +07:00
committed by Dat H. Pham
parent 979ba0f671
commit 77c2ef745f
8 changed files with 205 additions and 0 deletions
@@ -0,0 +1,45 @@
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 AddingListLabelsToListEmails extends LoadingState {}
class AddListLabelsToListEmailsSuccess extends UIState {
final List<EmailId> emailIds;
final List<KeyWordIdentifier> labelKeywords;
final List<String> labelDisplays;
AddListLabelsToListEmailsSuccess(
this.emailIds,
this.labelKeywords,
this.labelDisplays,
);
@override
List<Object> get props => [emailIds, labelKeywords, labelDisplays];
}
class AddListLabelsToListEmailsHasSomeFailure
extends AddListLabelsToListEmailsSuccess {
AddListLabelsToListEmailsHasSomeFailure(
super.emailIds,
super.labelKeywords,
super.labelDisplays,
);
@override
List<Object> get props => [...super.props, 'hasSomeFailure'];
}
class AddListLabelsToListEmailsFailure extends FeatureFailure {
final List<String> labelDisplays;
AddListLabelsToListEmailsFailure({
dynamic exception,
required this.labelDisplays,
}) : super(exception: exception);
@override
List<Object?> get props => [...super.props, labelDisplays];
}