TF-438 Implement get stored old email state

This commit is contained in:
dab246
2022-11-24 14:25:01 +07:00
committed by Dat H. Pham
parent 1bad43dd9c
commit 53793c6d5b
3 changed files with 58 additions and 0 deletions
@@ -0,0 +1,31 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:jmap_dart_client/jmap/core/state.dart' as jmap;
class GetStoredEmailStateSuccess extends UIState {
final jmap.State state;
GetStoredEmailStateSuccess(this.state);
@override
List<Object> get props => [state];
}
class NotFoundEmailState extends FeatureFailure {
NotFoundEmailState();
@override
List<Object> get props => [];
}
class GetStoredEmailStateFailure extends FeatureFailure {
final dynamic exception;
GetStoredEmailStateFailure(this.exception);
@override
List<Object> get props => [exception];
}