From f18357e1612b3223b4625665b95dbfa38756e838 Mon Sep 17 00:00:00 2001 From: DatDang Date: Mon, 29 Apr 2024 09:45:47 +0700 Subject: [PATCH] TF-2838 calendar event reject abstract data source & repo --- .../email/data/datasource/calendar_event_datasource.dart | 3 +++ .../email/domain/repository/calendar_event_repository.dart | 3 +++ 2 files changed, 6 insertions(+) diff --git a/lib/features/email/data/datasource/calendar_event_datasource.dart b/lib/features/email/data/datasource/calendar_event_datasource.dart index 727bae7da2..12262ae8ed 100644 --- a/lib/features/email/data/datasource/calendar_event_datasource.dart +++ b/lib/features/email/data/datasource/calendar_event_datasource.dart @@ -3,6 +3,7 @@ import 'package:jmap_dart_client/jmap/account_id.dart'; import 'package:jmap_dart_client/jmap/core/id.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart'; +import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_reject_response.dart'; import 'package:tmail_ui_user/features/email/domain/model/event_action.dart'; abstract class CalendarEventDataSource { @@ -11,4 +12,6 @@ abstract class CalendarEventDataSource { Future> getListEventAction(String emailContents); Future accept(AccountId accountId, Set blobIds); + + Future rejectEventInvitation(AccountId accountId, Set blobIds); } \ No newline at end of file diff --git a/lib/features/email/domain/repository/calendar_event_repository.dart b/lib/features/email/domain/repository/calendar_event_repository.dart index 5ca3421fe3..20f2b28bb5 100644 --- a/lib/features/email/domain/repository/calendar_event_repository.dart +++ b/lib/features/email/domain/repository/calendar_event_repository.dart @@ -3,6 +3,7 @@ import 'package:jmap_dart_client/jmap/account_id.dart'; import 'package:jmap_dart_client/jmap/core/id.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/calendar_event.dart'; import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_accept_response.dart'; +import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_reject_response.dart'; import 'package:tmail_ui_user/features/email/domain/model/event_action.dart'; abstract class CalendarEventRepository { @@ -11,4 +12,6 @@ abstract class CalendarEventRepository { Future> getListEventAction(String emailContents); Future accept(AccountId accountId, Set blobIds); + + Future rejectEventInvitation(AccountId accountId, Set blobIds); } \ No newline at end of file