TF-1813 Implement GetAllSendingEmails for domain and data layer
(cherry picked from commit 35fb38a1ed860cfa65ee57ec6d1e5e715fb1b7a7)
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/composer/domain/model/sending_email.dart';
|
||||
|
||||
class GetAllSendingEmailLoading extends UIState {}
|
||||
|
||||
class GetAllSendingEmailSuccess extends UIState {
|
||||
|
||||
final List<SendingEmail> sendingEmails;
|
||||
|
||||
GetAllSendingEmailSuccess(this.sendingEmails);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [sendingEmails];
|
||||
}
|
||||
|
||||
class GetAllSendingEmailFailure extends FeatureFailure {
|
||||
|
||||
GetAllSendingEmailFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user