TF-832 Add domain layer for delete recipient in forwarding

This commit is contained in:
dab246
2022-08-19 11:56:34 +07:00
committed by Dat H. Pham
parent b86ae96c30
commit 3f32b71f95
4 changed files with 85 additions and 0 deletions
@@ -0,0 +1,29 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:forward/forward/tmail_forward.dart';
class StartDeleteRecipientInForwarding extends UIState {
StartDeleteRecipientInForwarding();
@override
List<Object?> get props => [];
}
class DeleteRecipientInForwardingSuccess extends UIState {
final TMailForward forward;
DeleteRecipientInForwardingSuccess(this.forward);
@override
List<Object?> get props => [forward];
}
class DeleteRecipientInForwardingFailure extends FeatureFailure {
final dynamic exception;
DeleteRecipientInForwardingFailure(this.exception);
@override
List<Object> get props => [exception];
}