TF-4186 Implement remember choose organisation server
This commit is contained in:
@@ -6,14 +6,25 @@ class GettingCompanyServerLoginInfo extends LoadingState {}
|
||||
|
||||
class GetCompanyServerLoginInfoSuccess extends UIState {
|
||||
final CompanyServerLoginInfo serverLoginInfo;
|
||||
final bool popAllRoute;
|
||||
|
||||
GetCompanyServerLoginInfoSuccess(this.serverLoginInfo);
|
||||
GetCompanyServerLoginInfoSuccess(
|
||||
this.serverLoginInfo, {
|
||||
this.popAllRoute = true,
|
||||
});
|
||||
|
||||
@override
|
||||
List<Object> get props => [serverLoginInfo];
|
||||
List<Object> get props => [serverLoginInfo, popAllRoute];
|
||||
}
|
||||
|
||||
class GetCompanyServerLoginInfoFailure extends FeatureFailure {
|
||||
GetCompanyServerLoginInfoFailure(dynamic exception)
|
||||
: super(exception: exception);
|
||||
final bool popAllRoute;
|
||||
|
||||
GetCompanyServerLoginInfoFailure(
|
||||
dynamic exception, {
|
||||
this.popAllRoute = true,
|
||||
}) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object> get props => [exception, popAllRoute];
|
||||
}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class RemovingCompanyServerLoginInfo extends LoadingState {}
|
||||
|
||||
class RemoveCompanyServerLoginInfoSuccess extends UIState {}
|
||||
|
||||
class RemoveCompanyServerLoginInfoFailure extends FeatureFailure {
|
||||
RemoveCompanyServerLoginInfoFailure(dynamic exception)
|
||||
: super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user