TF-1599 Implement GetEmailChanges to remove notification

(cherry picked from commit 9a41ea84a40c97091b4c4c5d2e0c19afcafc712f)
This commit is contained in:
dab246
2023-04-07 15:58:57 +07:00
committed by Dat Vu
parent 89d7f605d2
commit fbaea1a951
4 changed files with 87 additions and 1 deletions
@@ -3,6 +3,7 @@ import 'package:fcm/model/type_name.dart';
import 'package:jmap_dart_client/jmap/account_id.dart';
import 'package:jmap_dart_client/jmap/core/properties/properties.dart';
import 'package:jmap_dart_client/jmap/core/session/session.dart';
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
import 'package:model/mailbox/presentation_mailbox.dart';
import 'package:tmail_ui_user/features/push_notification/domain/model/fcm_subscription.dart';
import 'package:tmail_ui_user/features/push_notification/domain/model/register_new_token_request.dart';
@@ -37,4 +38,14 @@ abstract class FCMRepository {
Future<bool> destroySubscription(String subscriptionId);
Future<List<PresentationMailbox>> getMailboxesNotPutNotifications(Session session, AccountId accountId);
Future<List<EmailId>> getEmailChangesToRemoveNotification(
Session session,
AccountId accountId,
jmap.State currentState,
{
Properties? propertiesCreated,
Properties? propertiesUpdated
}
);
}