Store and get fcm cache by AccountId
(cherry picked from commit e327dff45a4fc67d0c5a2d2afe64fc4673e2eac1)
This commit is contained in:
+4
-2
@@ -1,6 +1,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:model/email/presentation_email.dart';
|
||||
|
||||
class GetEmailChangesToPushNotificationLoading extends UIState {}
|
||||
@@ -8,11 +9,12 @@ class GetEmailChangesToPushNotificationLoading extends UIState {}
|
||||
class GetEmailChangesToPushNotificationSuccess extends UIState {
|
||||
|
||||
final List<PresentationEmail> emailList;
|
||||
final AccountId accountId;
|
||||
|
||||
GetEmailChangesToPushNotificationSuccess(this.emailList);
|
||||
GetEmailChangesToPushNotificationSuccess(this.accountId, this.emailList);
|
||||
|
||||
@override
|
||||
List<Object> get props => [emailList];
|
||||
List<Object> get props => [accountId, emailList];
|
||||
}
|
||||
|
||||
class GetEmailChangesToPushNotificationFailure extends FeatureFailure {
|
||||
|
||||
Reference in New Issue
Block a user