TF-1809: Create func get detailed email interactor

(cherry picked from commit 63001d6994d725325ca39d60a6a61a6c99752c69)
This commit is contained in:
HuyNguyen
2023-05-15 23:12:56 +07:00
committed by Dat Vu
parent 146b208631
commit d6f2045db4
4 changed files with 53 additions and 0 deletions
@@ -0,0 +1,22 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:tmail_ui_user/features/email/domain/model/detailed_email.dart';
class GetOpenedEmailLoading extends UIState {}
class GetOpenedEmailSuccess extends UIState {
final DetailedEmail detailedEmail;
GetOpenedEmailSuccess(this.detailedEmail);
@override
List<Object?> get props => [detailedEmail];
}
class GetOpenedEmailFailure extends FeatureFailure {
GetOpenedEmailFailure(dynamic exception) : super(exception: exception);
@override
List<Object?> get props => [exception];
}