Use TupleKey(ObjectKey-AccountId-UserName) to store data to hive
(cherry picked from commit e0ace535d5f3af71eb13598d92524caf2c6d9bbf)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:model/account/account.dart';
|
||||
import 'package:model/account/personal_account.dart';
|
||||
|
||||
class NoAuthenticatedAccountFailure extends FeatureFailure {
|
||||
|
||||
@@ -11,7 +11,7 @@ class NoAuthenticatedAccountFailure extends FeatureFailure {
|
||||
}
|
||||
|
||||
class GetAuthenticatedAccountSuccess extends UIState {
|
||||
final Account account;
|
||||
final PersonalAccount account;
|
||||
|
||||
GetAuthenticatedAccountSuccess(this.account);
|
||||
|
||||
@@ -20,9 +20,7 @@ class GetAuthenticatedAccountSuccess extends UIState {
|
||||
}
|
||||
|
||||
class GetAuthenticatedAccountFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetAuthenticatedAccountFailure(this.exception);
|
||||
GetAuthenticatedAccountFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:model/account/password.dart';
|
||||
import 'package:model/account/user_name.dart';
|
||||
|
||||
class GetCredentialViewState extends UIState {
|
||||
final Uri baseUrl;
|
||||
@@ -14,9 +15,8 @@ class GetCredentialViewState extends UIState {
|
||||
}
|
||||
|
||||
class GetCredentialFailure extends FeatureFailure {
|
||||
final dynamic exception;
|
||||
|
||||
GetCredentialFailure(this.exception);
|
||||
GetCredentialFailure(dynamic exception) : super(exception: exception);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [exception];
|
||||
|
||||
Reference in New Issue
Block a user