TF-1899 Implement interactor for get stored session
(cherry picked from commit 05eb5a5b9da2ab3fba64ea08591fd787a736549e)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/session/session.dart';
|
||||
|
||||
class GetStoredSessionLoading extends UIState {}
|
||||
|
||||
class GetStoredSessionSuccess extends UIState {
|
||||
|
||||
final Session session;
|
||||
|
||||
GetStoredSessionSuccess(this.session);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [session];
|
||||
}
|
||||
|
||||
class GetStoredSessionFailure extends FeatureFailure {
|
||||
|
||||
GetStoredSessionFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
Reference in New Issue
Block a user