TF-1708 Update props properties for all state object in interactor
(cherry picked from commit 2a5441c2ef4facf28e7e6e1678e89601d72259be)
This commit is contained in:
@@ -1,28 +1,11 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class AuthenticateOidcOnBrowserLoading extends LoadingState {
|
||||
class AuthenticateOidcOnBrowserLoading extends LoadingState {}
|
||||
|
||||
AuthenticateOidcOnBrowserLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class AuthenticateOidcOnBrowserSuccess extends UIState {
|
||||
|
||||
AuthenticateOidcOnBrowserSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class AuthenticateOidcOnBrowserSuccess extends UIState {}
|
||||
|
||||
class AuthenticateOidcOnBrowserFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
AuthenticateOidcOnBrowserFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
AuthenticateOidcOnBrowserFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,12 +1,8 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/user/user_profile.dart';
|
||||
|
||||
class AuthenticationUserLoading extends LoadingState {
|
||||
AuthenticationUserLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class AuthenticationUserLoading extends LoadingState {}
|
||||
|
||||
class AuthenticationUserSuccess extends UIState {
|
||||
final UserProfile userProfile;
|
||||
@@ -20,7 +16,4 @@ class AuthenticationUserSuccess extends UIState {
|
||||
class AuthenticationUserFailure extends FeatureFailure {
|
||||
|
||||
AuthenticationUserFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/response/oidc_response.dart';
|
||||
|
||||
class CheckOIDCIsAvailableLoading extends LoadingState {
|
||||
|
||||
CheckOIDCIsAvailableLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class CheckOIDCIsAvailableLoading extends LoadingState {}
|
||||
|
||||
class CheckOIDCIsAvailableSuccess extends UIState {
|
||||
final OIDCResponse oidcResponse;
|
||||
@@ -22,7 +16,4 @@ class CheckOIDCIsAvailableSuccess extends UIState {
|
||||
class CheckOIDCIsAvailableFailure extends FeatureFailure {
|
||||
|
||||
CheckOIDCIsAvailableFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -1,17 +1,9 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteAuthorityOidcSuccess extends UIState {
|
||||
DeleteAuthorityOidcSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class DeleteAuthorityOidcSuccess extends UIState {}
|
||||
|
||||
class DeleteAuthorityOidcFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteAuthorityOidcFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
DeleteAuthorityOidcFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,17 +1,9 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class DeleteCredentialSuccess extends UIState {
|
||||
DeleteCredentialSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class DeleteCredentialSuccess extends UIState {}
|
||||
|
||||
class DeleteCredentialFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
DeleteCredentialFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
DeleteCredentialFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -13,10 +13,6 @@ class GetAllRecentLoginUrlLatestSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAllRecentLoginUrlLatestFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetAllRecentLoginUrlLatestFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetAllRecentLoginUrlLatestFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -13,10 +13,6 @@ class GetAllRecentLoginUsernameLatestSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAllRecentLoginUsernameLatestFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetAllRecentLoginUsernameLatestFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetAllRecentLoginUsernameLatestFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/account/personal_account.dart';
|
||||
|
||||
class NoAuthenticatedAccountFailure extends FeatureFailure {
|
||||
|
||||
NoAuthenticatedAccountFailure();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
class NoAuthenticatedAccountFailure extends FeatureFailure {}
|
||||
|
||||
class GetAuthenticatedAccountSuccess extends UIState {
|
||||
final PersonalAccount account;
|
||||
@@ -20,8 +14,6 @@ class GetAuthenticatedAccountSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAuthenticatedAccountFailure extends FeatureFailure {
|
||||
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
|
||||
@@ -1,27 +1,11 @@
|
||||
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class GetAuthenticationInfoLoading extends LoadingState {
|
||||
class GetAuthenticationInfoLoading extends LoadingState {}
|
||||
|
||||
GetAuthenticationInfoLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class GetAuthenticationInfoSuccess extends UIState {
|
||||
|
||||
GetAuthenticationInfoSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class GetAuthenticationInfoSuccess extends UIState {}
|
||||
|
||||
class GetAuthenticationInfoFailure extends FeatureFailure {
|
||||
|
||||
GetAuthenticationInfoFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -17,7 +17,4 @@ class GetCredentialViewState extends UIState {
|
||||
class GetCredentialFailure extends FeatureFailure {
|
||||
|
||||
GetCredentialFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -1,13 +1,8 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/oidc_configuration.dart';
|
||||
|
||||
class GetOIDCConfigurationLoading extends LoadingState {
|
||||
|
||||
GetOIDCConfigurationLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class GetOIDCConfigurationLoading extends LoadingState {}
|
||||
|
||||
class GetOIDCConfigurationSuccess extends UIState {
|
||||
|
||||
@@ -22,7 +17,4 @@ class GetOIDCConfigurationSuccess extends UIState {
|
||||
class GetOIDCConfigurationFailure extends FeatureFailure {
|
||||
|
||||
GetOIDCConfigurationFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/response/oidc_response.dart';
|
||||
|
||||
class GetOIDCIsAvailableLoading extends LoadingState {
|
||||
|
||||
GetOIDCIsAvailableLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class GetOIDCIsAvailableLoading extends LoadingState {}
|
||||
|
||||
class GetOIDCIsAvailableSuccess extends UIState {
|
||||
final OIDCResponse oidcResponse;
|
||||
@@ -22,7 +16,4 @@ class GetOIDCIsAvailableSuccess extends UIState {
|
||||
class GetOIDCIsAvailableFailure extends FeatureFailure {
|
||||
|
||||
GetOIDCIsAvailableFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -2,13 +2,7 @@ import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/oidc_configuration.dart';
|
||||
|
||||
class GetStoredOidcConfigurationLoading extends LoadingState {
|
||||
|
||||
GetStoredOidcConfigurationLoading();
|
||||
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
class GetStoredOidcConfigurationLoading extends LoadingState {}
|
||||
|
||||
class GetStoredOidcConfigurationSuccess extends UIState {
|
||||
final OIDCConfiguration oidcConfiguration;
|
||||
@@ -20,10 +14,6 @@ class GetStoredOidcConfigurationSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetStoredOidcConfigurationFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetStoredOidcConfigurationFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetStoredOidcConfigurationFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -15,13 +15,6 @@ class GetStoredTokenOidcSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetStoredTokenOidcFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetStoredTokenOidcFailure(this.exception);
|
||||
|
||||
@override
|
||||
bool? get stringify => true;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
GetStoredTokenOidcFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,13 +1,9 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/oidc_configuration.dart';
|
||||
import 'package:model/oidc/token_oidc.dart';
|
||||
|
||||
class GetTokenOIDCLoading extends LoadingState {
|
||||
|
||||
GetTokenOIDCLoading();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class GetTokenOIDCLoading extends LoadingState {}
|
||||
|
||||
class GetTokenOIDCSuccess extends UIState {
|
||||
|
||||
@@ -23,7 +19,4 @@ class GetTokenOIDCSuccess extends UIState {
|
||||
class GetTokenOIDCFailure extends FeatureFailure {
|
||||
|
||||
GetTokenOIDCFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:model/model.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/oidc/token_oidc.dart';
|
||||
|
||||
class RefreshTokenOIDCSuccess extends UIState {
|
||||
|
||||
@@ -12,10 +13,6 @@ class RefreshTokenOIDCSuccess extends UIState {
|
||||
}
|
||||
|
||||
class RefreshTokenOIDCFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
RefreshTokenOIDCFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
RefreshTokenOIDCFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,20 +1,9 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class SaveRecentLoginUrlSuccess extends UIState {
|
||||
|
||||
SaveRecentLoginUrlSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class SaveRecentLoginUrlSuccess extends UIState {}
|
||||
|
||||
class SaveRecentLoginUrlFailed extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
SaveRecentLoginUrlFailed(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
|
||||
SaveRecentLoginUrlFailed(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -1,20 +1,9 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class SaveRecentLoginUsernameSuccess extends UIState {
|
||||
|
||||
SaveRecentLoginUsernameSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class SaveRecentLoginUsernameSuccess extends UIState {}
|
||||
|
||||
class SaveRecentLoginUsernameFailed extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
SaveRecentLoginUsernameFailed(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
|
||||
SaveRecentLoginUsernameFailed(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
@@ -3,19 +3,9 @@ import 'package:core/presentation/state/success.dart';
|
||||
|
||||
class UpdateAuthenticationAccountLoading extends LoadingState {}
|
||||
|
||||
class UpdateAuthenticationAccountSuccess extends UIState {
|
||||
|
||||
UpdateAuthenticationAccountSuccess();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
class UpdateAuthenticationAccountSuccess extends UIState {}
|
||||
|
||||
class UpdateAuthenticationAccountFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
UpdateAuthenticationAccountFailure(this.exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
UpdateAuthenticationAccountFailure(dynamic exception) : super(exception: exception);
|
||||
}
|
||||
Reference in New Issue
Block a user