TF-2819 calendar event maybe abstract data source & repo

This commit is contained in:
DatDang
2024-04-22 10:04:18 +07:00
committed by Dat H. Pham
parent f36164f807
commit 8ec3dec834
9 changed files with 13 additions and 7 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
+1 -1
View File
@@ -296,7 +296,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
+1 -1
View File
@@ -296,7 +296,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
+1 -1
View File
@@ -296,7 +296,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
@@ -2,6 +2,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/reply/calendar_event_accept_response.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_maybe_response.dart';
import 'package:tmail_ui_user/features/email/domain/model/event_action.dart';
import 'package:tmail_ui_user/features/email/presentation/model/blob_calendar_event.dart';
@@ -11,4 +12,6 @@ abstract class CalendarEventDataSource {
Future<List<EventAction>> getListEventAction(String emailContents);
Future<CalendarEventAcceptResponse> acceptEventInvitation(AccountId accountId, Set<Id> blobIds);
Future<CalendarEventMaybeResponse> maybeEventInvitation(AccountId accountId, Set<Id> blobIds);
}
@@ -3,9 +3,12 @@ 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/reply/calendar_event_accept_response.dart';
import 'package:tmail_ui_user/features/email/presentation/model/blob_calendar_event.dart';
import 'package:jmap_dart_client/jmap/mail/calendar/reply/calendar_event_maybe_response.dart';
abstract class CalendarEventRepository {
Future<List<BlobCalendarEvent>> parse(AccountId accountId, Set<Id> blobIds);
Future<CalendarEventAcceptResponse> acceptEventInvitation(AccountId accountId, Set<Id> blobIds);
Future<CalendarEventMaybeResponse> maybeEventInvitation(AccountId accountId, Set<Id> blobIds);
}
+1 -1
View File
@@ -524,7 +524,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
+1 -1
View File
@@ -1116,7 +1116,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"
+1 -1
View File
@@ -296,7 +296,7 @@ packages:
description:
path: "."
ref: master
resolved-ref: "2f84c2ccf5bdec830e07a18bb42338220c0e1279"
resolved-ref: "76e83e4469e137758b138ddec42177ca4292f1da"
url: "https://github.com/linagora/jmap-dart-client.git"
source: git
version: "0.0.1"