Use TupleKey(ObjectKey-AccountId-UserName) to store data to hive
(cherry picked from commit e0ace535d5f3af71eb13598d92524caf2c6d9bbf)
This commit is contained in:
+4
-2
@@ -2,6 +2,7 @@
|
||||
import 'package:core/presentation/state/failure.dart';
|
||||
import 'package:core/presentation/state/success.dart';
|
||||
import 'package:jmap_dart_client/jmap/account_id.dart';
|
||||
import 'package:jmap_dart_client/jmap/core/user_name.dart';
|
||||
import 'package:model/email/presentation_email.dart';
|
||||
|
||||
class GetEmailChangesToPushNotificationLoading extends UIState {}
|
||||
@@ -10,11 +11,12 @@ class GetEmailChangesToPushNotificationSuccess extends UIState {
|
||||
|
||||
final List<PresentationEmail> emailList;
|
||||
final AccountId accountId;
|
||||
final UserName userName;
|
||||
|
||||
GetEmailChangesToPushNotificationSuccess(this.accountId, this.emailList);
|
||||
GetEmailChangesToPushNotificationSuccess(this.accountId, this.userName, this.emailList);
|
||||
|
||||
@override
|
||||
List<Object> get props => [accountId, emailList];
|
||||
List<Object> get props => [accountId, userName, emailList];
|
||||
}
|
||||
|
||||
class GetEmailChangesToPushNotificationFailure extends FeatureFailure {
|
||||
|
||||
Reference in New Issue
Block a user