TF-571 get stored authenticated account

This commit is contained in:
Dat PHAM HOANG
2022-05-31 14:33:53 +07:00
committed by Dat H. Pham
parent 3442c399cf
commit 0b29deeeb9
2 changed files with 71 additions and 0 deletions
@@ -0,0 +1,29 @@
import 'package:core/presentation/state/failure.dart';
import 'package:core/presentation/state/success.dart';
import 'package:model/account/account.dart';
class NoAuthenticatedAccountFailure extends FeatureFailure {
NoAuthenticatedAccountFailure();
@override
List<Object?> get props => [];
}
class GetAuthenticatedAccountSuccess extends UIState {
final Account account;
GetAuthenticatedAccountSuccess(this.account);
@override
List<Object> get props => [account];
}
class GetAuthenticatedAccountFailure extends FeatureFailure {
final exception;
GetAuthenticatedAccountFailure(this.exception);
@override
List<Object?> get props => [exception];
}