TF-1933 Add GetStoredSendingEmail interactor
(cherry picked from commit bcf27cbaa5fbc62767a82e658e543339c5197991)
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:tmail_ui_user/features/offline_mode/model/sending_state.dart';
|
||||
import 'package:tmail_ui_user/features/sending_queue/domain/model/sending_email.dart';
|
||||
|
||||
class GetStoredSendingEmailLoading extends UIState {}
|
||||
|
||||
class GetStoredSendingEmailSuccess extends UIState {
|
||||
|
||||
final SendingEmail sendingEmail;
|
||||
final AccountId accountId;
|
||||
final UserName userName;
|
||||
final SendingState sendingState;
|
||||
|
||||
GetStoredSendingEmailSuccess(
|
||||
this.sendingEmail,
|
||||
this.accountId,
|
||||
this.userName,
|
||||
this.sendingState
|
||||
);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
sendingEmail,
|
||||
accountId,
|
||||
userName,
|
||||
sendingState
|
||||
];
|
||||
}
|
||||
|
||||
class GetStoredSendingEmailFailure extends FeatureFailure {
|
||||
|
||||
GetStoredSendingEmailFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user