TF-3082 Restore identity from cache
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:tmail_ui_user/features/identity_creator/domain/model/identity_cache.dart';
|
||||
|
||||
class GettingIdentityCacheOnWeb extends LoadingState {}
|
||||
|
||||
class GetIdentityCacheOnWebSuccess extends UIState {
|
||||
GetIdentityCacheOnWebSuccess(this.identityCache);
|
||||
|
||||
final IdentityCache? identityCache;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [identityCache];
|
||||
}
|
||||
|
||||
class GetIdentityCacheOnWebFailure extends FeatureFailure {
|
||||
GetIdentityCacheOnWebFailure({super.exception});
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class RemovingIdentityCacheOnWeb extends LoadingState {}
|
||||
|
||||
class RemoveIdentityCacheOnWebSuccess extends UIState {}
|
||||
|
||||
class RemoveIdentityCacheOnWebFailure extends FeatureFailure {
|
||||
RemoveIdentityCacheOnWebFailure({super.exception});
|
||||
}
|
||||
Reference in New Issue
Block a user